MCPcopy Create free account
hub / github.com/apache/arrow / OnRecordBatchMessageDecoded

Method OnRecordBatchMessageDecoded

cpp/src/arrow/ipc/reader.cc:1112–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 3

ReadDictionaryFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected