| 52 | |
| 53 | const char* kind_name() const override { return ThisNode::kKindName; } |
| 54 | Result<ExecBatch> ProcessBatch(ExecBatch batch) override { |
| 55 | if (num_pass == 1) { |
| 56 | inputs()[0]->PauseProducing(this, 1); |
| 57 | ARROW_RETURN_NOT_OK(static_cast<ThisNode*>(this)->DoStopProducing()); |
| 58 | } |
| 59 | if (num_pass > 0) --num_pass; |
| 60 | return batch; |
| 61 | } |
| 62 | |
| 63 | int num_pass; |
| 64 | }; |
nothing calls this directly
no test coverage detected