| 2063 | } |
| 2064 | |
| 2065 | Result<std::shared_ptr<RecordBatch>> WholeIpcFileRecordBatchGenerator::ReadRecordBatch( |
| 2066 | RecordBatchFileReaderImpl* state, Message* message) { |
| 2067 | CHECK_HAS_BODY(*message); |
| 2068 | ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body())); |
| 2069 | IpcReadContext context(&state->dictionary_memo_, state->options_, state->swap_endian_); |
| 2070 | ARROW_ASSIGN_OR_RAISE( |
| 2071 | auto batch_with_metadata, |
| 2072 | ReadRecordBatchInternal(*message->metadata(), state->schema_, |
| 2073 | state->field_inclusion_mask_, context, reader.get())); |
| 2074 | return batch_with_metadata.batch; |
| 2075 | } |
| 2076 | |
| 2077 | } // namespace |
| 2078 |
no outgoing calls