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

Method StartProducing

cpp/src/arrow/dataset/scan_node.cc:439–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437 }
438
439 Status StartProducing() override {
440 NoteStartProducing(ToStringExtra());
441 batches_throttle_ = util::ThrottledAsyncTaskScheduler::Make(
442 plan_->query_context()->async_scheduler(), options_.target_bytes_readahead + 1);
443 plan_->query_context()->async_scheduler()->AddSimpleTask(
444 [this] {
445 return GetFragments(options_.dataset.get(), options_.filter)
446 .Then([this](const AsyncGenerator<std::shared_ptr<Fragment>>& frag_gen) {
447 ScanFragments(frag_gen);
448 });
449 },
450 "ScanNode::ListDataset::GetFragments"sv);
451 return Status::OK();
452 }
453
454 void PauseProducing(ExecNode* output, int32_t counter) override {
455 // TODO(ARROW-17755)

Callers

nothing calls this directly

Calls 6

GetFragmentsFunction · 0.85
query_contextMethod · 0.80
ThenMethod · 0.80
MakeFunction · 0.50
OKFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected