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

Method ByteWiseIntersectBitMaps

cpp/src/gandiva/bitmap_accumulator_test.cc:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void TestBitMapAccumulator::ByteWiseIntersectBitMaps(
45 uint8_t* dst, const std::vector<const uint8_t*>& srcs,
46 const std::vector<int64_t>& srcOffsets, int nrecords) {
47 if (srcs.empty()) {
48 arrow::bit_util::SetBitsTo(dst, 0, nrecords, true);
49 return;
50 }
51
52 arrow::internal::CopyBitmap(srcs[0], srcOffsets[0], nrecords, dst, 0);
53 for (uint32_t j = 1; j < srcs.size(); ++j) {
54 arrow::internal::BitmapAnd(dst, 0, srcs[j], srcOffsets[j], nrecords, 0, dst);
55 }
56}
57
58TEST_F(TestBitMapAccumulator, TestIntersectBitMaps) {
59 const int length = 128;

Callers

nothing calls this directly

Calls 5

BitmapAndFunction · 0.85
SetBitsToFunction · 0.50
CopyBitmapFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected