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

Function IsNullSparseUnion

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

Source from the content-addressed store, hash-verified

70namespace internal {
71
72bool IsNullSparseUnion(const ArrayData& data, int64_t i) {
73 auto* union_type = checked_cast<const SparseUnionType*>(data.type.get());
74 const auto* types = reinterpret_cast<const int8_t*>(data.buffers[1]->data());
75 const int child_id = union_type->child_ids()[types[data.offset + i]];
76 return data.child_data[child_id]->IsNull(i);
77}
78
79bool IsNullDenseUnion(const ArrayData& data, int64_t i) {
80 auto* union_type = checked_cast<const DenseUnionType*>(data.type.get());

Callers 2

IsValidFunction · 0.85
IsValidFunction · 0.85

Calls 3

getMethod · 0.45
dataMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected