public enum Encoding extends Enum<Encoding>
| Enum Constant and Description |
|---|
BIT_PACKED
Deprecated.
This is no longer used, and has been replaced by
RLE
which is combination of bit packing and rle |
DELTA_BINARY_PACKED
Delta encoding for integers.
|
DELTA_BYTE_ARRAY
Incremental-encoded byte array.
|
DELTA_LENGTH_BYTE_ARRAY
Encoding for byte arrays to separate the length values and the data.
|
PLAIN |
PLAIN_DICTIONARY
Deprecated.
now replaced by RLE_DICTIONARY for the data page encoding and PLAIN for the dictionary page encoding
|
RLE
Actually a combination of bit packing and run length encoding.
|
RLE_DICTIONARY
Dictionary encoding: the ids are encoded using the RLE encoding
|
| Modifier and Type | Method and Description |
|---|---|
ValuesReader |
getDictionaryBasedValuesReader(ColumnDescriptor descriptor,
ValuesType valuesType,
Dictionary dictionary)
To read decoded values that require a dictionary
|
ValuesReader |
getValuesReader(ColumnDescriptor descriptor,
ValuesType valuesType)
To read decoded values that don't require a dictionary
|
Dictionary |
initDictionary(ColumnDescriptor descriptor,
DictionaryPage dictionaryPage)
initializes a dictionary from a page
|
boolean |
usesDictionary() |
static Encoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Encoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Encoding PLAIN
public static final Encoding RLE
@Deprecated public static final Encoding BIT_PACKED
RLE
which is combination of bit packing and rle@Deprecated public static final Encoding PLAIN_DICTIONARY
public static final Encoding DELTA_BINARY_PACKED
public static final Encoding DELTA_LENGTH_BYTE_ARRAY
public static final Encoding DELTA_BYTE_ARRAY
public static final Encoding RLE_DICTIONARY
public static Encoding[] values()
for (Encoding c : Encoding.values()) System.out.println(c);
public static Encoding valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean usesDictionary()
public Dictionary initDictionary(ColumnDescriptor descriptor, DictionaryPage dictionaryPage) throws IOException
descriptor - the column descriptor for the dictionary-encoded columndictionaryPage - a dictionary pageIOException - if there is an exception while reading the dictionary pageUnsupportedOperationException - if the encoding is not dictionary basedpublic ValuesReader getValuesReader(ColumnDescriptor descriptor, ValuesType valuesType)
descriptor - the column to readvaluesType - the type of valuesUnsupportedOperationException - if the encoding is dictionary basedpublic ValuesReader getDictionaryBasedValuesReader(ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary)
descriptor - the column to readvaluesType - the type of valuesdictionary - the dictionaryUnsupportedOperationException - if the encoding is not dictionary basedCopyright © 2019 The Apache Software Foundation. All rights reserved.