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

Method Reset

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

Source from the content-addressed store, hash-verified

604 }
605
606 void Reset(const uint8_t* data, rle_size_t data_size, rle_size_t value_bit_width,
607 rle_size_t value_count) noexcept {
608 ARROW_DCHECK_GE(value_count, 0);
609 ARROW_DCHECK_GE(value_bit_width, 0);
610 ARROW_DCHECK_LE(value_bit_width, 64);
611
612 value_bit_width_ = value_bit_width;
613
614 ARROW_DCHECK_LE(value_count, std::numeric_limits<rle_size_t>::max());
615 const auto run = BitPackedRun{
616 /* data= */ data,
617 /* value_count= */ value_count,
618 /* value_bit_width= */ value_bit_width,
619 /* max_read_bytes= */ data_size,
620 };
621 return Base::Reset(run, value_bit_width);
622 }
623
624 /// Whether there is still values to iterate over.
625 bool exhausted() const { return Base::remaining() == 0; }

Callers

nothing calls this directly

Calls 1

ResetFunction · 0.50

Tested by

no test coverage detected