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

Method Advance

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

Advance by as many values as provided or until exhaustion of the decoder. Return the number of values skipped.

Source from the content-addressed store, hash-verified

106 /// Advance by as many values as provided or until exhaustion of the decoder.
107 /// Return the number of values skipped.
108 [[nodiscard]] rle_size_t Advance(rle_size_t batch_size) {
109 const auto n_vals = GetAdvanceCapacity(batch_size);
110 values_left_ -= n_vals;
111 ARROW_DCHECK_GE(remaining(), 0);
112 return n_vals;
113 }
114
115 /// Read the next value into `out` and return false if there are no more.
116 [[nodiscard]] bool Get(BitmapSpanMut out) { return GetBatch(out, 1) == 1; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected