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

Method CountUpTo

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

Source from the content-addressed store, hash-verified

972
973template <typename T>
974RleCountUpToResult RleBitPackedDecoder<T>::CountUpTo(value_type value,
975 rle_size_t batch_size) {
976 rle_size_t count = 0;
977 const rle_size_t processed_count = ProcessValues(
978 [value, this, &count](auto& decoder, rle_size_t run_batch_size) {
979 const auto result = decoder.CountUpTo({
980 .value = value,
981 .batch_size = run_batch_size,
982 .value_bit_width = value_bit_width_,
983 });
984 count += result.matching_count;
985 return result.processed_count;
986 },
987 batch_size);
988 return {.matching_count = count, .processed_count = processed_count};
989}
990
991template <typename T>
992bool RleBitPackedDecoder<T>::Get(value_type* val) {

Callers 2

TESTFunction · 0.45
CheckCountUpToFunction · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
CheckCountUpToFunction · 0.36