MCPcopy Create free account
hub / github.com/apache/impala / GetSingleValue

Method GetSingleValue

be/src/util/rle-encoding.h:650–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648
649template <typename T>
650inline bool RleBatchDecoder<T>::GetSingleValue(T* val) {
651 if (NextNumRepeats() > 0) {
652 DCHECK_EQ(0, NextNumLiterals());
653 *val = GetRepeatedValue(1);
654 return true;
655 }
656 if (NextNumLiterals() > 0) {
657 DCHECK_EQ(0, NextNumRepeats());
658 return GetLiteralValues(1, val);
659 }
660 return false;
661}
662
663template <typename T>
664inline void RleBatchDecoder<T>::NextCounts() {

Callers 4

ValidateRleMethod · 0.80
ValidateRleSkipMethod · 0.80
TEST_FFunction · 0.80
CheckDataPageFunction · 0.80

Calls

no outgoing calls

Tested by 3

ValidateRleMethod · 0.64
ValidateRleSkipMethod · 0.64
TEST_FFunction · 0.64