| 1855 | } |
| 1856 | |
| 1857 | Status ReadBatch(std::shared_ptr<RecordBatch>* out_batch) { |
| 1858 | auto buf_reader = std::make_shared<io::BufferReader>(buffer_); |
| 1859 | std::shared_ptr<RecordBatchReader> reader; |
| 1860 | ARROW_ASSIGN_OR_RAISE( |
| 1861 | reader, RecordBatchStreamReader::Open(buf_reader, IpcReadOptions::Defaults())) |
| 1862 | return reader->ReadNext(out_batch); |
| 1863 | } |
| 1864 | |
| 1865 | std::unique_ptr<internal::IpcPayloadWriter> payload_writer_; |
| 1866 | const Schema& schema_; |
no test coverage detected