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

Method AddDictionary

cpp/src/arrow/ipc/dictionary.cc:254–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254Status DictionaryMemo::AddDictionary(int64_t id,
255 const std::shared_ptr<ArrayData>& dictionary) {
256 const auto pair = impl_->id_to_dictionary_.emplace(id, ArrayDataVector{dictionary});
257 if (!pair.second) {
258 return Status::KeyError("Dictionary with id ", id, " already exists");
259 }
260 return Status::OK();
261}
262
263Status DictionaryMemo::AddDictionaryDelta(int64_t id,
264 const std::shared_ptr<ArrayData>& dictionary) {

Callers 2

GetIntArrayFunction · 0.80
CollectDictionariesFunction · 0.80

Calls 2

KeyErrorFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected