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

Function SetLogicalNullBits

cpp/src/arrow/util/ree_util.cc:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50template <typename RunEndCType>
51void 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

Callers

nothing calls this directly

Calls 7

GetBitFunction · 0.70
SetBitsToFunction · 0.70
endMethod · 0.45
beginMethod · 0.45
index_into_arrayMethod · 0.45
run_lengthMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected