MCPcopy Create free account
hub / github.com/apache/arrow / ProcessBatch

Method ProcessBatch

cpp/src/arrow/acero/source_node_test.cc:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};

Callers

nothing calls this directly

Calls 2

PauseProducingMethod · 0.45
DoStopProducingMethod · 0.45

Tested by

no test coverage detected