MCPcopy Create free account
hub / github.com/apache/impala / AddToTable

Method AddToTable

be/src/util/dict-encoding.h:470–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468
469template<typename T>
470inline int DictEncoder<T>::AddToTable(const T& value, NodeIndex* bucket) {
471 DCHECK_GT(encoded_value_size_, 0);
472 Node node(value, *bucket);
473 ConsumeBytes(sizeof(node));
474 // Prepend the new node to this bucket's chain.
475 nodes_.push_back(node);
476 *bucket = nodes_.size() - 1;
477 dict_encoded_size_ += encoded_value_size_;
478 return encoded_value_size_;
479}
480
481template<>
482inline int DictEncoder<StringValue>::AddToTable(const StringValue& value,

Callers

nothing calls this directly

Calls 5

ByteSizeFunction · 0.85
push_backMethod · 0.80
sizeMethod · 0.45
ToSimpleStringMethod · 0.45
AllocateMethod · 0.45

Tested by

no test coverage detected