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

Method IsNullSparseUnion

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

Source from the content-addressed store, hash-verified

695}
696
697bool ArraySpan::IsNullSparseUnion(int64_t i) const {
698 auto* union_type = checked_cast<const SparseUnionType*>(this->type);
699 const auto* types = reinterpret_cast<const int8_t*>(this->buffers[1].data);
700 const int child_id = union_type->child_ids()[types[this->offset + i]];
701 return this->child_data[child_id].IsNull(this->offset + i);
702}
703
704bool ArraySpan::IsNullDenseUnion(int64_t i) const {
705 auto* union_type = checked_cast<const DenseUnionType*>(this->type);

Callers

nothing calls this directly

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected