Returns a conservative estimate of the number of bytes needed to encode the buffered indices. Used to size the buffer passed to WriteIndices().
| 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 { |
nothing calls this directly
no test coverage detected