Class PlainValuesDictionary.PlainIntegerDictionary
- java.lang.Object
-
- org.apache.parquet.column.Dictionary
-
- org.apache.parquet.column.values.dictionary.PlainValuesDictionary
-
- org.apache.parquet.column.values.dictionary.PlainValuesDictionary.PlainIntegerDictionary
-
- Enclosing class:
- PlainValuesDictionary
public static class PlainValuesDictionary.PlainIntegerDictionary extends PlainValuesDictionary
a simple implementation of dictionary for plain encoded integer values
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.parquet.column.values.dictionary.PlainValuesDictionary
PlainValuesDictionary.PlainBinaryDictionary, PlainValuesDictionary.PlainDoubleDictionary, PlainValuesDictionary.PlainFloatDictionary, PlainValuesDictionary.PlainIntegerDictionary, PlainValuesDictionary.PlainLongDictionary
-
-
Constructor Summary
Constructors Constructor Description PlainIntegerDictionary(DictionaryPage dictionaryPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decodeToInt(int id)
int
getMaxId()
String
toString()
-
Methods inherited from class org.apache.parquet.column.Dictionary
decodeToBinary, decodeToBoolean, decodeToDouble, decodeToFloat, decodeToLong, getEncoding
-
-
-
-
Constructor Detail
-
PlainIntegerDictionary
public PlainIntegerDictionary(DictionaryPage dictionaryPage) throws IOException
- Parameters:
dictionaryPage
- a dictionary page of encoded integer values- Throws:
IOException
- if there is an exception while decoding the dictionary page
-
-
Method Detail
-
decodeToInt
public int decodeToInt(int id)
- Overrides:
decodeToInt
in classDictionary
-
getMaxId
public int getMaxId()
- Specified by:
getMaxId
in classDictionary
-
-