Package io.trino.parquet.reader.decoders
Class ValueDecoders
java.lang.Object
io.trino.parquet.reader.decoders.ValueDecoders
This class provides static API for creating value decoders for given fields and encodings.
If no suitable decoder is found the Apache Parquet fallback is used.
Not all types are supported since this class is at this point used only by flat readers
This class is to replace most of the logic contained in ParquetEncoding enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValueDecoder<BinaryBuffer>getBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<byte[]>getBooleanDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<BinaryBuffer>getBoundedVarcharBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<byte[]>getByteDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<BinaryBuffer>getCharBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) static <T> DictionaryDecoder<T>getDictionaryDecoder(DictionaryPage dictionaryPage, ColumnAdapter<T> columnAdapter, ValueDecoder<T> plainValuesDecoder, boolean isNonNull) static ValueDecoder<long[]>getDoubleDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<BinaryBuffer>getFixedWidthBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getFixedWidthLongDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getFixedWidthShortDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<int[]>getInt32Decoder(ParquetEncoding encoding, PrimitiveField field) getInt96Decoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<int[]>getIntDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getLongDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getLongDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<int[]>getRealDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getShortDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<short[]>getShortDecoder(ParquetEncoding encoding, PrimitiveField field) static ValueDecoder<long[]>getUuidDecoder(ParquetEncoding encoding, PrimitiveField field)
-
Method Details
-
getDoubleDecoder
-
getRealDecoder
-
getShortDecimalDecoder
public static ValueDecoder<long[]> getShortDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) -
getLongDecimalDecoder
public static ValueDecoder<long[]> getLongDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) -
getUuidDecoder
-
getLongDecoder
-
getIntDecoder
-
getShortDecoder
-
getByteDecoder
-
getBooleanDecoder
public static ValueDecoder<byte[]> getBooleanDecoder(ParquetEncoding encoding, PrimitiveField field) -
getInt96Decoder
public static ValueDecoder<Int96ColumnAdapter.Int96Buffer> getInt96Decoder(ParquetEncoding encoding, PrimitiveField field) -
getFixedWidthShortDecimalDecoder
public static ValueDecoder<long[]> getFixedWidthShortDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) -
getFixedWidthLongDecimalDecoder
public static ValueDecoder<long[]> getFixedWidthLongDecimalDecoder(ParquetEncoding encoding, PrimitiveField field) -
getFixedWidthBinaryDecoder
public static ValueDecoder<BinaryBuffer> getFixedWidthBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) -
getBoundedVarcharBinaryDecoder
public static ValueDecoder<BinaryBuffer> getBoundedVarcharBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) -
getCharBinaryDecoder
public static ValueDecoder<BinaryBuffer> getCharBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) -
getBinaryDecoder
public static ValueDecoder<BinaryBuffer> getBinaryDecoder(ParquetEncoding encoding, PrimitiveField field) -
getDictionaryDecoder
public static <T> DictionaryDecoder<T> getDictionaryDecoder(DictionaryPage dictionaryPage, ColumnAdapter<T> columnAdapter, ValueDecoder<T> plainValuesDecoder, boolean isNonNull) -
getInt32Decoder
-