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

Method StartProducing

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

Source from the content-addressed store, hash-verified

2759 }
2760
2761 Status StartProducing(size_t num_threads, OutputBatchCallback output_callback,
2762 FinishedCallback finished_callback,
2763 ScheduleCallback schedule_callback) override {
2764 RETURN_NOT_OK(gen_->Init(num_threads, batch_size_, scale_factor_, seed_));
2765 output_callback_ = std::move(output_callback);
2766 finished_callback_ = std::move(finished_callback);
2767 schedule_callback_ = std::move(schedule_callback);
2768
2769 for (size_t i = 0; i < num_threads; i++)
2770 RETURN_NOT_OK(schedule_callback_(
2771 [this](size_t thread_index) { return this->ProduceCallback(thread_index); }));
2772 return Status::OK();
2773 }
2774
2775 std::shared_ptr<Schema> schema() const override { return schema_; }
2776

Callers

nothing calls this directly

Calls 3

ProduceCallbackMethod · 0.95
OKFunction · 0.50
InitMethod · 0.45

Tested by

no test coverage detected