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

Method GetDictionaryType

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

Source from the content-addressed store, hash-verified

222const DictionaryFieldMapper& DictionaryMemo::fields() const { return impl_->mapper_; }
223
224Result<std::shared_ptr<DataType>> DictionaryMemo::GetDictionaryType(int64_t id) const {
225 const auto it = impl_->id_to_type_.find(id);
226 if (it == impl_->id_to_type_.end()) {
227 return Status::KeyError("No record of dictionary type with id ", id);
228 }
229 return it->second;
230}
231
232// Returns KeyError if dictionary not found
233Result<std::shared_ptr<ArrayData>> DictionaryMemo::GetDictionary(int64_t id,

Callers 1

TESTFunction · 0.80

Calls 3

KeyErrorFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 1

TESTFunction · 0.64