| 49 | |
| 50 | template <typename RunEndCType> |
| 51 | void SetLogicalNullBits(const ArraySpan& span, uint8_t* out_bitmap, int64_t out_offset, |
| 52 | bool set_on_null) { |
| 53 | const auto& values = ValuesArray(span); |
| 54 | const auto& values_bitmap = values.buffers[0].data; |
| 55 | |
| 56 | RunEndEncodedArraySpan<RunEndCType> ree_span(span); |
| 57 | auto end = ree_span.end(); |
| 58 | for (auto it = ree_span.begin(); it != end; ++it) { |
| 59 | const bool is_null = |
| 60 | values_bitmap && |
| 61 | !bit_util::GetBit(values_bitmap, values.offset + it.index_into_array()); |
| 62 | bit_util::SetBitsTo(out_bitmap, out_offset, it.run_length(), set_on_null == is_null); |
| 63 | out_offset += it.run_length(); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | } // namespace |
| 68 |
nothing calls this directly
no test coverage detected