| 42 | } |
| 43 | |
| 44 | void 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 | |
| 58 | TEST_F(TestBitMapAccumulator, TestIntersectBitMaps) { |
| 59 | const int length = 128; |
nothing calls this directly
no test coverage detected