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

Method AppendValues

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

\brief Append a sequence of elements in one shot \param[in] values a contiguous C array of values \param[in] length the number of values to append \param[in] valid_bytes an optional sequence of bytes where non-zero indicates a valid (non-null) value \return Status

Source from the content-addressed store, hash-verified

171 /// indicates a valid (non-null) value
172 /// \return Status
173 Status AppendValues(const value_type* values, int64_t length,
174 const uint8_t* valid_bytes = NULLPTR) {
175 ARROW_RETURN_NOT_OK(Reserve(length));
176 data_builder_.UnsafeAppend(values, length);
177 // length_ is update by these
178 ArrayBuilder::UnsafeAppendToBitmap(valid_bytes, length);
179 return Status::OK();
180 }
181
182 /// \brief Append a sequence of elements in one shot
183 /// \param[in] values a contiguous C array of values

Callers

nothing calls this directly

Calls 10

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
AppendValuesFunction · 0.70
OKFunction · 0.50
UnsafeAppendMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
lengthMethod · 0.45
false_countMethod · 0.45

Tested by

no test coverage detected