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