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

Method Reset

cpp/src/arrow/util/rle_bitmap_internal.h:204–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 explicit BitPackedRunToBitmapDecoder(const RunType& run) noexcept { Reset(run); }
203
204 void Reset(const RunType& run) noexcept {
205 data_ = run.raw_data_ptr();
206 values_count_ = run.values_count();
207 values_read_ = 0;
208 ARROW_DCHECK(run.raw_data_max_size() < 0 ||
209 bit_util::BytesForBits(values_count_) <= run.raw_data_max_size());
210 }
211
212 /// Return the number of values that can be advanced.
213 constexpr rle_size_t remaining() const { return values_count_ - values_read_; }

Callers

nothing calls this directly

Calls 4

BytesForBitsFunction · 0.85
raw_data_max_sizeMethod · 0.80
raw_data_ptrMethod · 0.45
values_countMethod · 0.45

Tested by

no test coverage detected