| 2037 | } |
| 2038 | |
| 2039 | Result<std::shared_ptr<RecordBatch>> WholeIpcFileRecordBatchGenerator::ReadRecordBatch( |
| 2040 | RecordBatchFileReaderImpl* state, Message* message) { |
| 2041 | CHECK_HAS_BODY(*message); |
| 2042 | ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body())); |
| 2043 | IpcReadContext context(&state->dictionary_memo_, state->options_, state->swap_endian_); |
| 2044 | ARROW_ASSIGN_OR_RAISE( |
| 2045 | auto batch_with_metadata, |
| 2046 | ReadRecordBatchInternal(*message->metadata(), state->schema_, |
| 2047 | state->field_inclusion_mask_, context, reader.get())); |
| 2048 | return batch_with_metadata.batch; |
| 2049 | } |
| 2050 | |
| 2051 | } // namespace |
| 2052 |
no outgoing calls