| 288 | } |
| 289 | |
| 290 | Result<std::vector<::arrow::compute::ExecBatch>> ExecBatches(int64_t rows_per_batch, |
| 291 | int num_batches) override { |
| 292 | std::vector<::arrow::compute::ExecBatch> batches; |
| 293 | for (int i = 0; i < num_batches; i++) { |
| 294 | ARROW_ASSIGN_OR_RAISE(::arrow::compute::ExecBatch batch, ExecBatch(rows_per_batch)); |
| 295 | batches.push_back(std::move(batch)); |
| 296 | } |
| 297 | return batches; |
| 298 | } |
| 299 | |
| 300 | Result<std::shared_ptr<::arrow::Table>> Table(int64_t rows_per_chunk, |
| 301 | int num_chunks = 1) override { |