| 1110 | } |
| 1111 | |
| 1112 | Status OnRecordBatchMessageDecoded(std::unique_ptr<Message> message) { |
| 1113 | if (message->type() == MessageType::DICTIONARY_BATCH) { |
| 1114 | return ReadDictionary(*message); |
| 1115 | } else { |
| 1116 | CHECK_HAS_BODY(*message); |
| 1117 | ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body())); |
| 1118 | IpcReadContext context(&dictionary_memo_, options_, swap_endian_); |
| 1119 | ARROW_ASSIGN_OR_RAISE( |
| 1120 | auto batch_with_metadata, |
| 1121 | ReadRecordBatchInternal(*message->metadata(), schema_, field_inclusion_mask_, |
| 1122 | context, reader.get())); |
| 1123 | ++stats_.num_record_batches; |
| 1124 | return listener_->OnRecordBatchWithMetadataDecoded(batch_with_metadata); |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | // Read dictionary from dictionary batch |
| 1129 | Status ReadDictionary(const Message& message) { |
nothing calls this directly
no test coverage detected