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

Method StartProducing

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

Source from the content-addressed store, hash-verified

2697 }
2698
2699 Status StartProducing(size_t num_threads, OutputBatchCallback output_callback,
2700 FinishedCallback finished_callback,
2701 ScheduleCallback schedule_callback) override {
2702 RETURN_NOT_OK(gen_->Init(num_threads, batch_size_, scale_factor_, seed_));
2703 output_callback_ = std::move(output_callback);
2704 finished_callback_ = std::move(finished_callback);
2705 schedule_callback_ = std::move(schedule_callback);
2706
2707 for (size_t i = 0; i < num_threads; i++)
2708 RETURN_NOT_OK(schedule_callback_(
2709 [this](size_t thread_index) { return this->ProduceCallback(thread_index); }));
2710 return Status::OK();
2711 }
2712
2713 std::shared_ptr<Schema> schema() const override { return schema_; }
2714

Callers

nothing calls this directly

Calls 3

ProduceCallbackMethod · 0.95
OKFunction · 0.50
InitMethod · 0.45

Tested by

no test coverage detected