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

Function AppendNulls

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

Source from the content-addressed store, hash-verified

117 }
118
119 Status AppendNulls(int64_t length) final {
120 const int8_t first_child_code = type_codes_[0];
121 ArrayBuilder* child_builder = type_id_to_children_[first_child_code];
122 ARROW_RETURN_NOT_OK(types_builder_.Append(length, first_child_code));
123 ARROW_RETURN_NOT_OK(
124 offsets_builder_.Append(length, static_cast<int32_t>(child_builder->length())));
125 // Append just a single null to the first child
126 return child_builder->AppendNull();
127 }
128
129 Status AppendEmptyValue() final {
130 const int8_t first_child_code = type_codes_[0];

Callers 6

AppendScalarMethod · 0.70
AppendScalarImplMethod · 0.70
AppendNullMethod · 0.70
AppendNullFunction · 0.70
FlushBuildColumnMethod · 0.50
AppendNullsMethod · 0.50

Calls 7

OKFunction · 0.50
AppendMethod · 0.45
lengthMethod · 0.45
AppendNullMethod · 0.45
AppendNullsMethod · 0.45
sizeMethod · 0.45
AppendEmptyValuesMethod · 0.45

Tested by

no test coverage detected