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

Method GetRleValuesBatchedSkip

be/src/util/rle-test.cc:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 /// Get many values from a batch RLE decoder using its GetValues() function.
88 template <typename T>
89 static bool GetRleValuesBatchedSkip(RleBatchDecoder<T>* decoder, int num_vals, T* vals,
90 int skip_at, int skip_count) {
91 int cnt = 0;
92 if (skip_at > 0) cnt += decoder->GetValues(skip_at, vals);
93 if (decoder->SkipValues(skip_count) != skip_count) return false;
94 cnt += skip_count;
95 if (num_vals - cnt > 0) cnt += decoder->GetValues(num_vals - cnt, vals + skip_at);
96 return cnt == num_vals;
97 }
98
99 // Validates encoding of values by encoding and decoding them.
100 // If expected_encoding != NULL, validates that the encoded buffer is

Callers

nothing calls this directly

Calls 2

GetValuesMethod · 0.80
SkipValuesMethod · 0.45

Tested by

no test coverage detected