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

Function IsNullDenseUnion

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

Source from the content-addressed store, hash-verified

77}
78
79bool IsNullDenseUnion(const ArrayData& data, int64_t i) {
80 auto* union_type = checked_cast<const DenseUnionType*>(data.type.get());
81 const auto* types = reinterpret_cast<const int8_t*>(data.buffers[1]->data());
82 const int child_id = union_type->child_ids()[types[data.offset + i]];
83 const auto* offsets = reinterpret_cast<const int32_t*>(data.buffers[2]->data());
84 const int64_t child_offset = offsets[data.offset + i];
85 return data.child_data[child_id]->IsNull(child_offset);
86}
87
88bool IsNullRunEndEncoded(const ArrayData& data, int64_t i) {
89 return ArraySpan(data).IsNullRunEndEncoded(i);

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