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

Method WriteData

be/src/util/dict-encoding.h:642–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642inline int DictEncoderBase::WriteData(uint8_t* buffer, int buffer_len) {
643 // Write bit width in first byte
644 *buffer = bit_width();
645 ++buffer;
646 --buffer_len;
647
648 RleEncoder encoder(buffer, buffer_len, bit_width());
649 for (int index: buffered_indices_) {
650 if (!encoder.Put(index)) return -1;
651 }
652 encoder.Flush();
653 return 1 + encoder.len();
654}
655
656template <>
657template<parquet::Type::type PARQUET_TYPE>

Callers 4

WriteDictDataPageMethod · 0.45
DictEncodeAllFunction · 0.45
ValidateDictFunction · 0.45
TESTFunction · 0.45

Calls 3

PutMethod · 0.45
FlushMethod · 0.45
lenMethod · 0.45

Tested by 2

ValidateDictFunction · 0.36
TESTFunction · 0.36