Package io.trino.parquet.reader.decoders
Class RleBitPackingHybridDecoder
java.lang.Object
io.trino.parquet.reader.decoders.RleBitPackingHybridDecoder
- All Implemented Interfaces:
ValueDecoder<int[]>
Run Length Encoding / Bit-Packing Hybrid (RLE)
This class is similar to
NullsDecoder but specialized for reading integers stored in bit width of 0 - 32.
It is used specifically for decoding dictionary ids currently.
It can be used for decoding definition and repetition levels of nested columns in future.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.parquet.reader.decoders.ValueDecoder
ValueDecoder.EmptyValueDecoder<T>, ValueDecoder.LevelsDecoderProvider, ValueDecoder.ValueDecodersProvider<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(SimpleSliceInputStream input) voidread(int[] values, int offset, int length) voidskip(int n)
-
Constructor Details
-
RleBitPackingHybridDecoder
public RleBitPackingHybridDecoder(int bitWidth)
-
-
Method Details
-
init
- Specified by:
initin interfaceValueDecoder<int[]>
-
read
public void read(int[] values, int offset, int length) - Specified by:
readin interfaceValueDecoder<int[]>
-
skip
public void skip(int n) - Specified by:
skipin interfaceValueDecoder<int[]>
-