MCPcopy Create free account
hub / github.com/apache/arrow / IndexInBounds

Method IndexInBounds

cpp/src/parquet/decoder.cc:1015–1020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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());

Callers 1

DecodeMethod · 0.80

Calls 2

OKFunction · 0.50
InvalidFunction · 0.50

Tested by

no test coverage detected