| 278 | } |
| 279 | |
| 280 | Result<::arrow::compute::ExecBatch> ExecBatch(int64_t num_rows) override { |
| 281 | std::vector<Datum> values; |
| 282 | values.reserve(generators_.size()); |
| 283 | for (auto& field : generators_) { |
| 284 | ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Array> arr, field.gen->Generate(num_rows)); |
| 285 | values.push_back(std::move(arr)); |
| 286 | } |
| 287 | return ::arrow::compute::ExecBatch(std::move(values), num_rows); |
| 288 | } |
| 289 | |
| 290 | Result<std::vector<::arrow::compute::ExecBatch>> ExecBatches(int64_t rows_per_batch, |
| 291 | int num_batches) override { |