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

Method AppendEmptyValues

cpp/src/arrow/array/builder_primitive.h:136–141  ·  view source on GitHub ↗

\brief Append several empty elements

Source from the content-addressed store, hash-verified

134
135 /// \brief Append several empty elements
136 Status AppendEmptyValues(int64_t length) final {
137 ARROW_RETURN_NOT_OK(Reserve(length));
138 data_builder_.UnsafeAppend(length, value_type{}); // zero
139 UnsafeSetNotNull(length);
140 return Status::OK();
141 }
142
143 value_type GetValue(int64_t index) const { return data_builder_.data()[index]; }
144

Callers

nothing calls this directly

Calls 3

ReserveFunction · 0.70
OKFunction · 0.50
UnsafeAppendMethod · 0.45

Tested by

no test coverage detected