| 225 | } |
| 226 | |
| 227 | Status ChunkedBinaryBuilder::NextChunk() { |
| 228 | std::shared_ptr<Array> chunk; |
| 229 | RETURN_NOT_OK(builder_->Finish(&chunk)); |
| 230 | chunks_.emplace_back(std::move(chunk)); |
| 231 | |
| 232 | if (auto capacity = extra_capacity_) { |
| 233 | extra_capacity_ = 0; |
| 234 | return Reserve(capacity); |
| 235 | } |
| 236 | |
| 237 | return Status::OK(); |
| 238 | } |
| 239 | |
| 240 | Status ChunkedStringBuilder::Finish(ArrayVector* out) { |
| 241 | RETURN_NOT_OK(ChunkedBinaryBuilder::Finish(out)); |
nothing calls this directly
no test coverage detected