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

Method ScheduleTaskCallback

cpp/src/arrow/acero/tpch_node.cc:3415–3427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3413 }
3414
3415 Status ScheduleTaskCallback(std::function<Status(size_t)> func) {
3416 if (finished_generating_.load()) return Status::OK();
3417 plan_->query_context()->ScheduleTask(
3418 [this, func](size_t thread_index) {
3419 Status status = func(thread_index);
3420 if (!status.ok()) {
3421 ARROW_RETURN_NOT_OK(StopProducing());
3422 }
3423 return status;
3424 },
3425 "TpchNode::GenerateAndProcessBatch");
3426 return Status::OK();
3427 }
3428
3429 const char* name_;
3430 std::unique_ptr<TpchTableGenerator> generator_;

Callers 1

StartProducingMethod · 0.95

Calls 6

ScheduleTaskMethod · 0.80
query_contextMethod · 0.80
OKFunction · 0.50
funcFunction · 0.50
loadMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected