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

Function InitializeTrie

cpp/src/arrow/csv/converter.cc:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Status InitializeTrie(const std::vector<std::string>& inputs, Trie* trie) {
89 TrieBuilder builder;
90 for (const auto& s : inputs) {
91 RETURN_NOT_OK(builder.Append(s, true /* allow_duplicates */));
92 }
93 *trie = builder.Finish();
94 return Status::OK();
95}
96
97// Presize a builder based on parser contents
98template <typename BuilderType>

Callers 1

MakeMethod · 0.85

Calls 3

OKFunction · 0.50
AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected