Class DictionaryDecoder<T>

java.lang.Object
io.trino.parquet.reader.flat.DictionaryDecoder<T>
All Implemented Interfaces:
ValueDecoder<T>

public final class DictionaryDecoder<T> extends Object implements ValueDecoder<T>
  • Constructor Details

    • DictionaryDecoder

      public DictionaryDecoder(T dictionary, ColumnAdapter<T> columnAdapter, int dictionarySize, boolean isNonNull)
  • Method Details

    • init

      public void init(SimpleSliceInputStream input)
      Specified by:
      init in interface ValueDecoder<T>
    • read

      public void read(T values, int offset, int length)
      Specified by:
      read in interface ValueDecoder<T>
    • skip

      public void skip(int n)
      Specified by:
      skip in interface ValueDecoder<T>
    • getRetainedSizeInBytes

      public long getRetainedSizeInBytes()
    • readDictionaryIds

      public void readDictionaryIds(int[] ids, int offset, int length)
    • getDictionaryBlock

      public Block getDictionaryBlock()
    • getDictionarySize

      public int getDictionarySize()
    • getDictionaryDecoder

      public static <BufferType> DictionaryDecoder<BufferType> getDictionaryDecoder(DictionaryPage dictionaryPage, ColumnAdapter<BufferType> columnAdapter, ValueDecoder<BufferType> plainValuesDecoder, boolean isNonNull)