public static class PlainValuesDictionary.PlainBinaryDictionary extends PlainValuesDictionary
PlainValuesDictionary.PlainBinaryDictionary, PlainValuesDictionary.PlainDoubleDictionary, PlainValuesDictionary.PlainFloatDictionary, PlainValuesDictionary.PlainIntegerDictionary, PlainValuesDictionary.PlainLongDictionary| Constructor and Description |
|---|
PlainBinaryDictionary(DictionaryPage dictionaryPage)
Decodes
Binary values from a DictionaryPage. |
PlainBinaryDictionary(DictionaryPage dictionaryPage,
Integer length)
Decodes
Binary values from a DictionaryPage. |
| Modifier and Type | Method and Description |
|---|---|
Binary |
decodeToBinary(int id) |
int |
getMaxId() |
String |
toString() |
decodeToBoolean, decodeToDouble, decodeToFloat, decodeToInt, decodeToLong, getEncodingpublic PlainBinaryDictionary(DictionaryPage dictionaryPage) throws IOException
Binary values from a DictionaryPage.
Values are read as length-prefixed values with a 4-byte little-endian
length.dictionaryPage - a DictionaryPage of encoded binary valuesIOException - if there is an exception while decoding the dictionary pagepublic PlainBinaryDictionary(DictionaryPage dictionaryPage, Integer length) throws IOException
Binary values from a DictionaryPage.
If the given length is 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-length Binary
values read from the page.dictionaryPage - a DictionaryPage of encoded binary valueslength - a fixed length of binary arrays, or null if not fixedIOException - if there is an exception while decoding the dictionary pagepublic Binary decodeToBinary(int id)
decodeToBinary in class Dictionarypublic int getMaxId()
getMaxId in class DictionaryCopyright © 2019 The Apache Software Foundation. All rights reserved.