| 34 | } |
| 35 | |
| 36 | uint32_t DictionaryVector::Encode(const Value &val) const { |
| 37 | if (val.IsNull()) return INVALID_CODE; |
| 38 | auto it = encode_map_.find(val.ToString()); |
| 39 | return (it != encode_map_.end()) ? it->second : INVALID_CODE; |
| 40 | } |
| 41 | |
| 42 | const Value &DictionaryVector::Decode(uint32_t code) const { |
| 43 | static Value null_val; |
no test coverage detected