| 335 | } |
| 336 | |
| 337 | static arrow::AsyncGenerator<std::optional<ExecBatch>> TableGenerator( |
| 338 | const Table& table, const int64_t batch_size) { |
| 339 | auto batches = ConvertTableToExecBatches(table, batch_size); |
| 340 | auto opt_batches = |
| 341 | MapVector([](ExecBatch batch) { return std::make_optional(std::move(batch)); }, |
| 342 | std::move(batches)); |
| 343 | AsyncGenerator<std::optional<ExecBatch>> gen; |
| 344 | gen = MakeVectorGenerator(std::move(opt_batches)); |
| 345 | return gen; |
| 346 | } |
| 347 | |
| 348 | static std::vector<ExecBatch> ConvertTableToExecBatches(const Table& table, |
| 349 | const int64_t batch_size) { |
nothing calls this directly
no test coverage detected