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

Method InputReceived

cpp/src/arrow/acero/order_by_node.cc:98–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Callers 1

DoFinishMethod · 0.45

Calls 4

ToRecordBatchMethod · 0.80
push_backMethod · 0.80
ARROW_ASSIGN_OR_RAISEFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected