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

Method Append

cpp/src/arrow/array/builder_nested.h:118–124  ·  view source on GitHub ↗

\brief Start a new variable-length list slot This function should be called before appending elements to the value builder. Elements appended to the value builder before this function is called for the first time, will not be members of any list value. After this function is called, list_length elements SHOULD be appended to the values builder. If this contract is violated, the behavior is defin

Source from the content-addressed store, hash-verified

116 /// \param is_valid Whether the new list slot is valid
117 /// \param list_length The number of elements in the list
118 Status Append(bool is_valid, int64_t list_length) {
119 ARROW_RETURN_NOT_OK(Reserve(1));
120 assert(is_valid || list_length == 0);
121 UnsafeAppendToBitmap(is_valid);
122 UnsafeAppendDimensions(/*offset=*/value_builder_->length(), /*size=*/list_length);
123 return Status::OK();
124 }
125
126 Status AppendNull() final {
127 // Append() a null list slot with list_length=0.

Callers

nothing calls this directly

Calls 4

UnsafeAppendToBitmapFunction · 0.85
ReserveFunction · 0.70
OKFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected