Class PlainValuesDictionary.PlainBinaryDictionary
java.lang.Object
org.apache.parquet.column.Dictionary
org.apache.parquet.column.values.dictionary.PlainValuesDictionary
org.apache.parquet.column.values.dictionary.PlainValuesDictionary.PlainBinaryDictionary
- Enclosing class:
- PlainValuesDictionary
a simple implementation of dictionary for plain encoded binary
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.parquet.column.values.dictionary.PlainValuesDictionary
PlainValuesDictionary.PlainBinaryDictionary, PlainValuesDictionary.PlainBooleanDictionary, PlainValuesDictionary.PlainDoubleDictionary, PlainValuesDictionary.PlainFloatDictionary, PlainValuesDictionary.PlainIntegerDictionary, PlainValuesDictionary.PlainLongDictionary -
Constructor Summary
ConstructorsConstructorDescriptionPlainBinaryDictionary(DictionaryPage dictionaryPage) DecodesBinaryvalues from aDictionaryPage.PlainBinaryDictionary(DictionaryPage dictionaryPage, Integer length) DecodesBinaryvalues from aDictionaryPage. -
Method Summary
Methods inherited from class org.apache.parquet.column.Dictionary
decodeToBoolean, decodeToDouble, decodeToFloat, decodeToInt, decodeToLong, getEncoding
-
Constructor Details
-
PlainBinaryDictionary
DecodesBinaryvalues from aDictionaryPage.Values are read as length-prefixed values with a 4-byte little-endian length.
- Parameters:
dictionaryPage- aDictionaryPageof encoded binary values- Throws:
IOException- if there is an exception while decoding the dictionary page
-
PlainBinaryDictionary
DecodesBinaryvalues from aDictionaryPage.If the given
lengthis null, the values will be read as length- prefixed values with a 4-byte little-endian length. If length is not null, it will be used as the length for all fixed-lengthBinaryvalues read from the page.- Parameters:
dictionaryPage- aDictionaryPageof encoded binary valueslength- a fixed length of binary arrays, or null if not fixed- Throws:
IOException- if there is an exception while decoding the dictionary page
-
-
Method Details
-
decodeToBinary
- Overrides:
decodeToBinaryin classDictionary
-
toString
-
getMaxId
public int getMaxId()- Specified by:
getMaxIdin classDictionary
-