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

Method EstimatedDataEncodedSize

cpp/src/parquet/encoder.cc:497–501  ·  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 WriteIndices().

Source from the content-addressed store, hash-verified

495 /// Returns a conservative estimate of the number of bytes needed to encode the buffered
496 /// indices. Used to size the buffer passed to WriteIndices().
497 int64_t EstimatedDataEncodedSize() override {
498 return kDataPageBitWidthBytes +
499 RlePreserveBufferSize(static_cast<int64_t>(buffered_indices_.size()),
500 bit_width());
501 }
502
503 /// The minimum bit width required to encode the currently buffered indices.
504 int bit_width() const override {

Callers

nothing calls this directly

Calls 3

RlePreserveBufferSizeFunction · 0.85
bit_widthFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected