| 727 | std::shared_ptr<Schema> schema() const override { return schema_; } |
| 728 | |
| 729 | Status Read(const IpcReadOptions& options, std::shared_ptr<Table>* out) { |
| 730 | ARROW_ASSIGN_OR_RAISE(auto reader, RecordBatchFileReader::Open(source_, options)); |
| 731 | RecordBatchVector batches(reader->num_record_batches()); |
| 732 | for (int i = 0; i < reader->num_record_batches(); ++i) { |
| 733 | ARROW_ASSIGN_OR_RAISE(batches[i], reader->ReadRecordBatch(i)); |
| 734 | } |
| 735 | |
| 736 | return Table::FromRecordBatches(reader->schema(), batches).Value(out); |
| 737 | } |
| 738 | |
| 739 | Status Read(std::shared_ptr<Table>* out) override { return Read(options_, out); } |
| 740 |
nothing calls this directly
no test coverage detected