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

Method EstimatedDataEncodedSize

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

Returns a conservative estimate of the number of bytes needed to encode the buffered indices. Used to size the buffer passed to WriteData().

Source from the content-addressed store, hash-verified

81 /// Returns a conservative estimate of the number of bytes needed to encode the buffered
82 /// indices. Used to size the buffer passed to WriteData().
83 int EstimatedDataEncodedSize() {
84 return 1 + RleEncoder::MaxBufferSize(bit_width(), buffered_indices_.size());
85 }
86
87 /// The minimum bit width required to encode the currently buffered indices.
88 int bit_width() const {

Callers 4

ProcessValueMethod · 0.80
DictEncodeAllFunction · 0.80
ValidateDictFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

ValidateDictFunction · 0.64
TESTFunction · 0.64