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

Method ReadDictionary

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

Read dictionary from dictionary batch

Source from the content-addressed store, hash-verified

1127
1128 // Read dictionary from dictionary batch
1129 Status ReadDictionary(const Message& message) {
1130 DictionaryKind kind;
1131 IpcReadContext context(&dictionary_memo_, options_, swap_endian_);
1132 RETURN_NOT_OK(::arrow::ipc::ReadDictionary(message, context, &kind));
1133 ++stats_.num_dictionary_batches;
1134 switch (kind) {
1135 case DictionaryKind::New:
1136 break;
1137 case DictionaryKind::Delta:
1138 ++stats_.num_dictionary_deltas;
1139 break;
1140 case DictionaryKind::Replacement:
1141 ++stats_.num_replaced_dictionaries;
1142 break;
1143 }
1144 return Status::OK();
1145 }
1146
1147 std::shared_ptr<Listener> listener_;
1148 const IpcReadOptions options_;

Callers

nothing calls this directly

Calls 2

ReadDictionaryFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected