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

Method StartProducing

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

Source from the content-addressed store, hash-verified

3078 }
3079
3080 Status StartProducing(size_t num_threads, OutputBatchCallback output_callback,
3081 FinishedCallback finished_callback,
3082 ScheduleCallback schedule_callback) override {
3083 RETURN_NOT_OK(gen_->Init(num_threads, batch_size_, scale_factor_, seed_));
3084 output_callback_ = std::move(output_callback);
3085 finished_callback_ = std::move(finished_callback);
3086 schedule_callback_ = std::move(schedule_callback);
3087
3088 for (size_t i = 0; i < num_threads; i++)
3089 RETURN_NOT_OK(schedule_callback_(
3090 [this](size_t thread_index) { return this->ProduceCallback(thread_index); }));
3091 return Status::OK();
3092 }
3093
3094 std::shared_ptr<Schema> schema() const override { return schema_; }
3095

Callers

nothing calls this directly

Calls 3

ProduceCallbackMethod · 0.95
OKFunction · 0.50
InitMethod · 0.45

Tested by

no test coverage detected