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

Method IsNullDenseUnion

cpp/src/arrow/array/data.cc:704–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704bool ArraySpan::IsNullDenseUnion(int64_t i) const {
705 auto* union_type = checked_cast<const DenseUnionType*>(this->type);
706 const auto* types = reinterpret_cast<const int8_t*>(this->buffers[1].data);
707 const auto* offsets = reinterpret_cast<const int32_t*>(this->buffers[2].data);
708 const int64_t child_id = union_type->child_ids()[types[this->offset + i]];
709 const int64_t child_offset = offsets[this->offset + i];
710 return this->child_data[child_id].IsNull(child_offset);
711}
712
713bool ArraySpan::IsNullRunEndEncoded(int64_t i) const {
714 const auto& values = ree_util::ValuesArray(*this);

Callers

nothing calls this directly

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected