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

Method OnRecordBatchMessageDecoded

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

Source from the content-addressed store, hash-verified

1095 }
1096
1097 Status OnRecordBatchMessageDecoded(std::unique_ptr<Message> message) {
1098 if (message->type() == MessageType::DICTIONARY_BATCH) {
1099 return ReadDictionary(*message);
1100 } else {
1101 CHECK_HAS_BODY(*message);
1102 ARROW_ASSIGN_OR_RAISE(auto reader, Buffer::GetReader(message->body()));
1103 IpcReadContext context(&dictionary_memo_, options_, swap_endian_);
1104 ARROW_ASSIGN_OR_RAISE(
1105 auto batch_with_metadata,
1106 ReadRecordBatchInternal(*message->metadata(), schema_, field_inclusion_mask_,
1107 context, reader.get()));
1108 ++stats_.num_record_batches;
1109 return listener_->OnRecordBatchWithMetadataDecoded(batch_with_metadata);
1110 }
1111 }
1112
1113 // Read dictionary from dictionary batch
1114 Status ReadDictionary(const Message& message) {

Callers

nothing calls this directly

Calls 3

ReadDictionaryFunction · 0.85
typeMethod · 0.45

Tested by

no test coverage detected