public enum Encoding extends Enum<Encoding>
Enum Constant and Description |
---|
BIT_PACKED
Deprecated.
|
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 |
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 rlepublic 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
dictionaryPage
- IOException
public ValuesReader getValuesReader(ColumnDescriptor descriptor, ValuesType valuesType)
descriptor
- the column to readvaluesType
- the type of valuespublic ValuesReader getDictionaryBasedValuesReader(ColumnDescriptor descriptor, ValuesType valuesType, Dictionary dictionary)
descriptor
- the column to readvaluesType
- the type of valuesdictionary
- the dictionaryCopyright © 2015. All rights reserved.