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

Method GetBatch

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

Get a batch of values return the number of decoded elements. May write fewer elements to the output than requested if there are not enough values left.

Source from the content-addressed store, hash-verified

236 /// May write fewer elements to the output than requested if there are not enough values
237 /// left.
238 [[nodiscard]] rle_size_t GetBatch(BitmapSpanMut out, rle_size_t batch_size) {
239 auto n_vals = GetAdvanceCapacity(batch_size);
240 arrow::internal::CopyBitmap(unread_values_ptr(), unread_values_bit_offset(), n_vals,
241 out.data(), out.bit_start());
242 return Advance(n_vals);
243 }
244
245 private:
246 /// The pointer to the beginning of the run

Callers

nothing calls this directly

Calls 4

AdvanceFunction · 0.85
bit_startMethod · 0.80
CopyBitmapFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected