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

Function AppendEmptyValues

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

Source from the content-addressed store, hash-verified

137 }
138
139 Status AppendEmptyValues(int64_t length) final {
140 const int8_t first_child_code = type_codes_[0];
141 ArrayBuilder* child_builder = type_id_to_children_[first_child_code];
142 ARROW_RETURN_NOT_OK(types_builder_.Append(length, first_child_code));
143 ARROW_RETURN_NOT_OK(
144 offsets_builder_.Append(length, static_cast<int32_t>(child_builder->length())));
145 // Append just a single empty value to the first child
146 return child_builder->AppendEmptyValue();
147 }
148
149 /// \brief Append an element to the UnionArray. This must be followed
150 /// by an append to the appropriate child builder.

Callers 2

AppendEmptyValueMethod · 0.70
AppendEmptyValueFunction · 0.70

Calls 5

OKFunction · 0.50
AppendMethod · 0.45
lengthMethod · 0.45
AppendEmptyValueMethod · 0.45
AppendEmptyValuesMethod · 0.45

Tested by

no test coverage detected