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

Method ReadDictionary

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

Read dictionary from dictionary batch

Source from the content-addressed store, hash-verified

1112
1113 // Read dictionary from dictionary batch
1114 Status ReadDictionary(const Message& message) {
1115 DictionaryKind kind;
1116 IpcReadContext context(&dictionary_memo_, options_, swap_endian_);
1117 RETURN_NOT_OK(::arrow::ipc::ReadDictionary(message, context, &kind));
1118 ++stats_.num_dictionary_batches;
1119 switch (kind) {
1120 case DictionaryKind::New:
1121 break;
1122 case DictionaryKind::Delta:
1123 ++stats_.num_dictionary_deltas;
1124 break;
1125 case DictionaryKind::Replacement:
1126 ++stats_.num_replaced_dictionaries;
1127 break;
1128 }
1129 return Status::OK();
1130 }
1131
1132 std::shared_ptr<Listener> listener_;
1133 const IpcReadOptions options_;

Callers

nothing calls this directly

Calls 2

ReadDictionaryFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected