MCPcopy Create free account
hub / github.com/apache/arrow / FromTag

Method FromTag

cpp/src/arrow/json/parser.cc:90–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90Kind::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
98Status Kind::ForType(const DataType& type, Kind::type* kind) {
99 struct {

Callers

nothing calls this directly

Calls 4

MakeFromTagTrieFunction · 0.85
FindKeyMethod · 0.80
valueMethod · 0.45
FindMethod · 0.45

Tested by

no test coverage detected