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

Method InputFinished

cpp/src/arrow/acero/sorted_merge_node.cc:382–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 }
381
382 arrow::Status InputFinished(arrow::acero::ExecNode* input, int total_batches) override {
383 ARROW_DCHECK(std_has(inputs_, input));
384 {
385 std::lock_guard<std::mutex> guard(gate);
386 ARROW_DCHECK(std_has(inputs_, input));
387 size_t k = std_find(inputs_, input) - inputs_.begin();
388 state.at(k)->set_total_batches(total_batches);
389 }
390 // Trigger a final process call for stragglers
391 PushTask(kNewTask);
392
393 return Status::OK();
394 }
395
396 arrow::Status StartProducing() override {
397 ARROW_ASSIGN_OR_RAISE(process_task, plan_->query_context()->BeginExternalTask(

Callers 1

EndFromProcessThreadMethod · 0.45

Calls 5

std_hasFunction · 0.70
std_findFunction · 0.70
OKFunction · 0.50
beginMethod · 0.45
set_total_batchesMethod · 0.45

Tested by

no test coverage detected