| 2048 | } |
| 2049 | |
| 2050 | Result<std::shared_ptr<RecordBatch>> WholeIpcFileRecordBatchGenerator::ReadRecordBatch( |
| 2051 | RecordBatchFileReaderImpl* state, Message* message) { |
| 2052 | CHECK_HAS_BODY(*message); |
| 2053 | ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body())); |
| 2054 | IpcReadContext context(&state->dictionary_memo_, state->options_, state->swap_endian_); |
| 2055 | ARROW_ASSIGN_OR_RAISE( |
| 2056 | auto batch_with_metadata, |
| 2057 | ReadRecordBatchInternal(*message->metadata(), state->schema_, |
| 2058 | state->field_inclusion_mask_, context, reader.get())); |
| 2059 | return batch_with_metadata.batch; |
| 2060 | } |
| 2061 | |
| 2062 | } // namespace |
| 2063 |
no outgoing calls