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

Method StartProducing

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

Source from the content-addressed store, hash-verified

3140 }
3141
3142 Status StartProducing(size_t num_threads, OutputBatchCallback output_callback,
3143 FinishedCallback finished_callback,
3144 ScheduleCallback schedule_callback) override {
3145 RETURN_NOT_OK(gen_->Init(num_threads, batch_size_, scale_factor_, seed_));
3146 output_callback_ = std::move(output_callback);
3147 finished_callback_ = std::move(finished_callback);
3148 schedule_callback_ = std::move(schedule_callback);
3149
3150 for (size_t i = 0; i < num_threads; i++)
3151 RETURN_NOT_OK(schedule_callback_(
3152 [this](size_t thread_index) { return this->ProduceCallback(thread_index); }));
3153 return Status::OK();
3154 }
3155
3156 std::shared_ptr<Schema> schema() const override { return schema_; }
3157

Callers

nothing calls this directly

Calls 3

ProduceCallbackMethod · 0.95
OKFunction · 0.50
InitMethod · 0.45

Tested by

no test coverage detected