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

Method CountUpTo

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

Advance and count the number of occurrence of a values. The count is limited to at most the next `batch_size` items. @return The matching value count and number of of element that were processed.

Source from the content-addressed store, hash-verified

629 /// The count is limited to at most the next `batch_size` items.
630 /// @return The matching value count and number of of element that were processed.
631 RleCountUpToResult CountUpTo(value_type value, rle_size_t batch_size) {
632 return Base::CountUpTo({
633 .value = value,
634 .batch_size = batch_size,
635 .value_bit_width = value_bit_width_,
636 });
637 }
638
639 /// Gets the next value or returns false if there are no more or an error occurred.
640 [[nodiscard]] bool Get(value_type* val) { return Base::Get(val, value_bit_width_); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected