| 1058 | std::shared_ptr<Schema> schema() const override { return schema_; } |
| 1059 | |
| 1060 | Status ReadNext(std::shared_ptr<RecordBatch>* record_batch) override { |
| 1061 | if (!iterator_) { |
| 1062 | return Status::Invalid("call to ReadNext on already closed reader"); |
| 1063 | } |
| 1064 | return iterator_->Next().Value(record_batch); |
| 1065 | } |
| 1066 | |
| 1067 | Status Close() override { |
| 1068 | if (!iterator_) { |