| 1000 | } |
| 1001 | |
| 1002 | inline void DecodeDict(TypedDecoder<Type>* dictionary) { |
| 1003 | dictionary_length_ = static_cast<int32_t>(dictionary->values_left()); |
| 1004 | PARQUET_THROW_NOT_OK( |
| 1005 | dictionary_->Resize(static_cast<int64_t>(dictionary_length_) * sizeof(T), |
| 1006 | /*shrink_to_fit=*/false)); |
| 1007 | dictionary->Decode(dictionary_->mutable_data_as<T>(), dictionary_length_); |
| 1008 | } |
| 1009 | |
| 1010 | // Only one is set. |
| 1011 | std::shared_ptr<ResizableBuffer> dictionary_; |
nothing calls this directly
no test coverage detected