| 124 | : accepted_unit_(accepted_unit) {} |
| 125 | |
| 126 | bool Matches(const DataType& type) const override { |
| 127 | if (type.id() != ArrowType::type_id) { |
| 128 | return false; |
| 129 | } |
| 130 | const auto& time_type = checked_cast<const ArrowType&>(type); |
| 131 | return time_type.unit() == accepted_unit_; |
| 132 | } |
| 133 | |
| 134 | bool Equals(const TypeMatcher& other) const override { |
| 135 | if (this == &other) { |