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

Method ComputeResult

cpp/src/gandiva/bitmap_accumulator.cc:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace gandiva {
25
26void BitMapAccumulator::ComputeResult(uint8_t* dst_bitmap) {
27 int64_t num_records = eval_batch_.num_records();
28
29 if (all_invalid_) {
30 // set all bits to 0.
31 memset(dst_bitmap, 0, arrow::bit_util::BytesForBits(num_records));
32 } else {
33 IntersectBitMaps(dst_bitmap, src_maps_, src_map_offsets_, num_records);
34 }
35}
36
37/// Compute the intersection of multiple bitmaps.
38void BitMapAccumulator::IntersectBitMaps(uint8_t* dst_map,

Callers 1

ComputeBitMapsForExprMethod · 0.80

Calls 2

BytesForBitsFunction · 0.85
num_recordsMethod · 0.80

Tested by

no test coverage detected