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

Function AppendEmptyValue

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

Source from the content-addressed store, hash-verified

127 }
128
129 Status AppendEmptyValue() final {
130 const int8_t first_child_code = type_codes_[0];
131 ArrayBuilder* child_builder = type_id_to_children_[first_child_code];
132 ARROW_RETURN_NOT_OK(types_builder_.Append(first_child_code));
133 ARROW_RETURN_NOT_OK(
134 offsets_builder_.Append(static_cast<int32_t>(child_builder->length())));
135 // Append an empty value arbitrarily to the first child
136 return child_builder->AppendEmptyValue();
137 }
138
139 Status AppendEmptyValues(int64_t length) final {
140 const int8_t first_child_code = type_codes_[0];

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected