| 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) |
nothing calls this directly
no test coverage detected