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

Method ReadDictionary

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

Read dictionary from dictionary batch

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ReadDictionaryFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected