| 392 | num_batches_(num_batches) {} |
| 393 | |
| 394 | Result<RecordBatchGenerator> ScanBatchesAsync( |
| 395 | const std::shared_ptr<ScanOptions>& options) override { |
| 396 | // Fragment with start_=0 defers returning the generator |
| 397 | if (start_ == 0) { |
| 398 | std::this_thread::sleep_for(std::chrono::duration<double>(0.1)); |
| 399 | } |
| 400 | |
| 401 | auto vec = gen::Gen({gen::Step(start_)}) |
| 402 | ->FailOnError() |
| 403 | ->RecordBatches(rows_per_batch_, num_batches_); |
| 404 | auto it = MakeVectorIterator(vec); |
| 405 | return MakeBackgroundGenerator(std::move(it), io::default_io_context().executor()); |
| 406 | } |
| 407 | |
| 408 | std::string type_name() const override { return "mock"; } |
| 409 |
nothing calls this directly
no test coverage detected