\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
| 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. |
nothing calls this directly
no test coverage detected