| 96 | Status StopProducingImpl() override { return Status::OK(); } |
| 97 | |
| 98 | Status InputReceived(ExecNode* input, ExecBatch batch) override { |
| 99 | auto scope = TraceInputReceived(batch); |
| 100 | DCHECK_EQ(input, inputs_[0]); |
| 101 | |
| 102 | ARROW_ASSIGN_OR_RAISE(std::shared_ptr<RecordBatch> record_batch, |
| 103 | batch.ToRecordBatch(output_schema_)); |
| 104 | |
| 105 | { |
| 106 | std::lock_guard lk(mutex_); |
| 107 | accumulation_queue_.push_back(std::move(record_batch)); |
| 108 | } |
| 109 | |
| 110 | if (counter_.Increment()) { |
| 111 | return DoFinish(); |
| 112 | } |
| 113 | return Status::OK(); |
| 114 | } |
| 115 | |
| 116 | Status DoFinish() { |
| 117 | ARROW_ASSIGN_OR_RAISE( |
no test coverage detected