| 52 | : ChunkedArrayBuilder(task_group), converter_(std::move(converter)) {} |
| 53 | |
| 54 | Status Finish(std::shared_ptr<ChunkedArray>* out) override { |
| 55 | RETURN_NOT_OK(task_group_->Finish()); |
| 56 | *out = std::make_shared<ChunkedArray>(std::move(chunks_), converter_->out_type()); |
| 57 | chunks_.clear(); |
| 58 | return Status::OK(); |
| 59 | } |
| 60 | |
| 61 | Status ReplaceTaskGroup(const std::shared_ptr<TaskGroup>& task_group) override { |
| 62 | RETURN_NOT_OK(task_group_->Finish()); |