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

Method Reset

cpp/src/arrow/util/rle_encoding_internal.h:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 }
345
346 void Reset(const RunType& run, rle_size_t value_bit_width) noexcept {
347 ARROW_DCHECK_GE(value_bit_width, 0);
348 ARROW_DCHECK_LE(value_bit_width, 64);
349 data_ = run.raw_data_ptr();
350 values_count_ = run.values_count();
351 values_read_ = 0;
352 max_read_bytes_ = run.raw_data_max_size();
353 }
354
355 /// Return the number of values that can be advanced.
356 constexpr rle_size_t remaining() const { return values_count_ - values_read_; }

Callers

nothing calls this directly

Calls 3

raw_data_max_sizeMethod · 0.80
raw_data_ptrMethod · 0.45
values_countMethod · 0.45

Tested by

no test coverage detected