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

Method OptionalBinaryBitBlockCounter

cpp/src/arrow/util/bit_block_counter.cc:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 length) {}
51
52OptionalBinaryBitBlockCounter::OptionalBinaryBitBlockCounter(const uint8_t* left_bitmap,
53 int64_t left_offset,
54 const uint8_t* right_bitmap,
55 int64_t right_offset,
56 int64_t length)
57 : has_bitmap_(HasBitmapFromBitmaps(left_bitmap != nullptr, right_bitmap != nullptr)),
58 position_(0),
59 length_(length),
60 unary_counter_(
61 util::MakeNonNull(left_bitmap != nullptr ? left_bitmap : right_bitmap),
62 left_bitmap != nullptr ? left_offset : right_offset, length),
63 binary_counter_(util::MakeNonNull(left_bitmap), left_offset,
64 util::MakeNonNull(right_bitmap), right_offset, length) {}
65
66OptionalBinaryBitBlockCounter::OptionalBinaryBitBlockCounter(
67 const std::shared_ptr<Buffer>& left_bitmap, int64_t left_offset,

Callers

nothing calls this directly

Calls 3

HasBitmapFromBitmapsFunction · 0.85
MakeNonNullFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected