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

Method ExtendLookupTable

cpp/src/arrow/util/trie.cc:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119Status TrieBuilder::ExtendLookupTable(index_type* out_index) {
120 auto cur_size = trie_.lookup_table_.size();
121 auto cur_index = cur_size / 256;
122 if (cur_index > static_cast<size_t>(kMaxIndex)) {
123 return Status::CapacityError("TrieBuilder cannot extend lookup table further");
124 }
125 trie_.lookup_table_.resize(cur_size + 256, -1);
126 *out_index = static_cast<index_type>(cur_index);
127 return Status::OK();
128}
129
130Status TrieBuilder::SplitNode(fast_index_type node_index, fast_index_type split_at) {
131 Trie::Node* node = &trie_.nodes_[node_index];

Callers

nothing calls this directly

Calls 4

CapacityErrorFunction · 0.85
resizeMethod · 0.80
OKFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected