| 90 | std::shared_ptr<Schema> schema() const override { return schema_; } |
| 91 | |
| 92 | Status ReadNext(std::shared_ptr<RecordBatch>* out) override { |
| 93 | if (position_ >= batches_.size()) { |
| 94 | *out = nullptr; |
| 95 | } else { |
| 96 | *out = batches_[position_++]; |
| 97 | } |
| 98 | return Status::OK(); |
| 99 | } |
| 100 | |
| 101 | private: |
| 102 | std::shared_ptr<Schema> schema_; |