| 222 | const DictionaryFieldMapper& DictionaryMemo::fields() const { return impl_->mapper_; } |
| 223 | |
| 224 | Result<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 |
| 233 | Result<std::shared_ptr<ArrayData>> DictionaryMemo::GetDictionary(int64_t id, |