Package io.trino.parquet.reader.flat
Class DictionaryDecoder<T>
java.lang.Object
io.trino.parquet.reader.flat.DictionaryDecoder<T>
- All Implemented Interfaces:
ValueDecoder<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.trino.parquet.reader.decoders.ValueDecoder
ValueDecoder.EmptyValueDecoder<T>, ValueDecoder.LevelsDecoderProvider, ValueDecoder.ValueDecodersProvider<T> -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryDecoder(T dictionary, ColumnAdapter<T> columnAdapter, int dictionarySize, boolean isNonNull) -
Method Summary
Modifier and TypeMethodDescriptionstatic <BufferType>
DictionaryDecoder<BufferType>getDictionaryDecoder(DictionaryPage dictionaryPage, ColumnAdapter<BufferType> columnAdapter, ValueDecoder<BufferType> plainValuesDecoder, boolean isNonNull) intlongvoidinit(SimpleSliceInputStream input) voidvoidreadDictionaryIds(int[] ids, int offset, int length) voidskip(int n)
-
Constructor Details
-
DictionaryDecoder
public DictionaryDecoder(T dictionary, ColumnAdapter<T> columnAdapter, int dictionarySize, boolean isNonNull)
-
-
Method Details
-
init
- Specified by:
initin interfaceValueDecoder<T>
-
read
- Specified by:
readin interfaceValueDecoder<T>
-
skip
public void skip(int n) - Specified by:
skipin interfaceValueDecoder<T>
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes() -
readDictionaryIds
public void readDictionaryIds(int[] ids, int offset, int length) -
getDictionaryBlock
-
getDictionarySize
public int getDictionarySize() -
getDictionaryDecoder
public static <BufferType> DictionaryDecoder<BufferType> getDictionaryDecoder(DictionaryPage dictionaryPage, ColumnAdapter<BufferType> columnAdapter, ValueDecoder<BufferType> plainValuesDecoder, boolean isNonNull)
-