| 88 | } |
| 89 | |
| 90 | Kind::type Kind::FromTag(const std::shared_ptr<const KeyValueMetadata>& tag) { |
| 91 | static arrow::internal::Trie name_to_kind = MakeFromTagTrie(); |
| 92 | DCHECK_NE(tag->FindKey("json_kind"), -1); |
| 93 | std::string_view name = tag->value(tag->FindKey("json_kind")); |
| 94 | DCHECK_NE(name_to_kind.Find(name), -1); |
| 95 | return static_cast<Kind::type>(name_to_kind.Find(name)); |
| 96 | } |
| 97 | |
| 98 | Status Kind::ForType(const DataType& type, Kind::type* kind) { |
| 99 | struct { |
nothing calls this directly
no test coverage detected