| 252 | } |
| 253 | |
| 254 | Status 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 | |
| 263 | Status DictionaryMemo::AddDictionaryDelta(int64_t id, |
| 264 | const std::shared_ptr<ArrayData>& dictionary) { |
no test coverage detected