Package io.trino.parquet
Enum ParquetEncoding
- java.lang.Object
-
- java.lang.Enum<ParquetEncoding>
-
- io.trino.parquet.ParquetEncoding
-
- All Implemented Interfaces:
Serializable,Comparable<ParquetEncoding>
public enum ParquetEncoding extends Enum<ParquetEncoding>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIT_PACKEDDELTA_BINARY_PACKEDDELTA_BYTE_ARRAYDELTA_LENGTH_BYTE_ARRAYPLAINPLAIN_DICTIONARYRLERLE_DICTIONARY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.parquet.column.values.ValuesReadergetDictionaryBasedValuesReader(org.apache.parquet.column.ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary)org.apache.parquet.column.values.ValuesReadergetValuesReader(org.apache.parquet.column.ColumnDescriptor descriptor, ValuesType valuesType)DictionaryinitDictionary(org.apache.parquet.column.ColumnDescriptor descriptor, DictionaryPage dictionaryPage)booleanusesDictionary()static ParquetEncodingvalueOf(String name)Returns the enum constant of this type with the specified name.static ParquetEncoding[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN
public static final ParquetEncoding PLAIN
-
RLE
public static final ParquetEncoding RLE
-
BIT_PACKED
public static final ParquetEncoding BIT_PACKED
-
PLAIN_DICTIONARY
public static final ParquetEncoding PLAIN_DICTIONARY
-
DELTA_BINARY_PACKED
public static final ParquetEncoding DELTA_BINARY_PACKED
-
DELTA_LENGTH_BYTE_ARRAY
public static final ParquetEncoding DELTA_LENGTH_BYTE_ARRAY
-
DELTA_BYTE_ARRAY
public static final ParquetEncoding DELTA_BYTE_ARRAY
-
RLE_DICTIONARY
public static final ParquetEncoding RLE_DICTIONARY
-
-
Method Detail
-
values
public static ParquetEncoding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParquetEncoding c : ParquetEncoding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParquetEncoding valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
usesDictionary
public boolean usesDictionary()
-
initDictionary
public Dictionary initDictionary(org.apache.parquet.column.ColumnDescriptor descriptor, DictionaryPage dictionaryPage) throws IOException
- Throws:
IOException
-
getValuesReader
public org.apache.parquet.column.values.ValuesReader getValuesReader(org.apache.parquet.column.ColumnDescriptor descriptor, ValuesType valuesType)
-
getDictionaryBasedValuesReader
public org.apache.parquet.column.values.ValuesReader getDictionaryBasedValuesReader(org.apache.parquet.column.ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary)
-
-