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

Method InputReceived

cpp/src/arrow/acero/map_node.cc:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69Status MapNode::StopProducingImpl() { return Status::OK(); }
70
71Status MapNode::InputReceived(ExecNode* input, ExecBatch batch) {
72 auto scope = TraceInputReceived(batch);
73 DCHECK_EQ(input, inputs_[0]);
74 compute::Expression guarantee = batch.guarantee;
75 int64_t index = batch.index;
76 ARROW_ASSIGN_OR_RAISE(auto output_batch, ProcessBatch(std::move(batch)));
77 output_batch.guarantee = guarantee;
78 output_batch.index = index;
79 ARROW_RETURN_NOT_OK(output_->InputReceived(this, std::move(output_batch)));
80 if (input_counter_.Increment()) {
81 this->Finish();
82 }
83 return Status::OK();
84}
85
86void MapNode::Finish() {}
87

Callers 1

Calls 2

FinishMethod · 0.95
OKFunction · 0.50

Tested by

no test coverage detected