| 1013 | |
| 1014 | protected: |
| 1015 | Status IndexInBounds(int32_t index) const { |
| 1016 | if (ARROW_PREDICT_TRUE(0 <= index && index < dictionary_length_)) { |
| 1017 | return Status::OK(); |
| 1018 | } |
| 1019 | return Status::Invalid("Index not in dictionary bounds"); |
| 1020 | } |
| 1021 | |
| 1022 | inline void DecodeDict(TypedDecoder<Type>* dictionary) { |
| 1023 | dictionary_length_ = static_cast<int32_t>(dictionary->values_left()); |