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

Method Reset

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

Source from the content-addressed store, hash-verified

365 }
366
367 void Reset(const RunType& run, rle_size_t value_bit_width) noexcept {
368 ARROW_DCHECK_GE(value_bit_width, 0);
369 ARROW_DCHECK_LE(value_bit_width, 64);
370 data_ = run.raw_data_ptr();
371 values_count_ = run.values_count();
372 values_read_ = 0;
373 max_read_bytes_ = run.raw_data_max_size();
374 }
375
376 /// Return the number of values that can be advanced.
377 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