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

Method Reset

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

Source from the content-addressed store, hash-verified

493
494template <typename T>
495inline void RleBatchDecoder<T>::Reset(uint8_t* buffer, int buffer_len, int bit_width) {
496 DCHECK(buffer != nullptr);
497 DCHECK_GE(buffer_len, 0);
498 DCHECK_GE(bit_width, 0);
499 DCHECK_LE(bit_width, sizeof(T) * 8);
500 DCHECK_LE(bit_width, BatchedBitReader::MAX_BITWIDTH);
501 bit_reader_.Reset(buffer, buffer_len);
502 bit_width_ = bit_width;
503 repeat_count_ = 0;
504 literal_count_ = 0;
505 num_buffered_literals_ = 0;
506 literal_buffer_pos_ = 0;
507}
508
509template <typename T>
510inline int32_t RleBatchDecoder<T>::NextNumRepeats() {

Callers 5

ValidateRleMethod · 0.45
ValidateRleSkipMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TestBitArrayValuesFunction · 0.45

Calls

no outgoing calls

Tested by 5

ValidateRleMethod · 0.36
ValidateRleSkipMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TestBitArrayValuesFunction · 0.36