| 24 | namespace gandiva { |
| 25 | |
| 26 | void 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. |
| 38 | void BitMapAccumulator::IntersectBitMaps(uint8_t* dst_map, |
no test coverage detected