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

Function AppendNull

cpp/src/arrow/array/builder_union.h:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 offsets_builder_(pool, alignment) {}
108
109 Status AppendNull() final {
110 const int8_t first_child_code = type_codes_[0];
111 ArrayBuilder* child_builder = type_id_to_children_[first_child_code];
112 ARROW_RETURN_NOT_OK(types_builder_.Append(first_child_code));
113 ARROW_RETURN_NOT_OK(
114 offsets_builder_.Append(static_cast<int32_t>(child_builder->length())));
115 // Append a null arbitrarily to the first child
116 return child_builder->AppendNull();
117 }
118
119 Status AppendNulls(int64_t length) final {
120 const int8_t first_child_code = type_codes_[0];

Callers 7

AppendArrayMethod · 0.70
AppendArraySliceImplMethod · 0.70
AppendArrayMethod · 0.70
AppendValueMethod · 0.50
AppendValueMethod · 0.50
AppendNullMethod · 0.50
VisitFilterMethod · 0.50

Calls 6

OKFunction · 0.50
AppendMethod · 0.45
lengthMethod · 0.45
AppendNullMethod · 0.45
sizeMethod · 0.45
AppendEmptyValueMethod · 0.45

Tested by

no test coverage detected