| 506 | const std::vector<std::shared_ptr<arrow::RecordBatch>>& batches() { return batches_; } |
| 507 | |
| 508 | arrow::Status Init(const std::shared_ptr<arrow::Schema>& schema, |
| 509 | acero::BackpressureControl* backpressure_control, |
| 510 | acero::ExecPlan* exec_plan) override { |
| 511 | schema_ = schema; |
| 512 | return arrow::Status::OK(); |
| 513 | } |
| 514 | |
| 515 | arrow::Status Consume(compute::ExecBatch batch) override { |
| 516 | auto record_batch = batch.ToRecordBatch(schema_); |