public class DictionaryValuesReader extends ValuesReader
| Constructor and Description |
|---|
DictionaryValuesReader(Dictionary dictionary) |
| Modifier and Type | Method and Description |
|---|---|
void |
initFromPage(int valueCount,
byte[] page,
int offset)
Called to initialize the column reader from a part of a page.
|
Binary |
readBytes() |
double |
readDouble() |
float |
readFloat() |
int |
readInteger() |
long |
readLong() |
int |
readValueDictionaryId()
usable when the encoding is dictionary based
|
void |
skip()
Skips the next value in the page
|
getNextOffset, readBooleanpublic DictionaryValuesReader(Dictionary dictionary)
public void initFromPage(int valueCount,
byte[] page,
int offset)
throws IOException
ValuesReaderinitFromPage in class ValuesReadervalueCount - count of values in this pagepage - the array to read from containing the page data (repetition levels, definition levels, data)offset - where to start reading from in the pageIOExceptionpublic int readValueDictionaryId()
ValuesReaderreadValueDictionaryId in class ValuesReaderpublic Binary readBytes()
readBytes in class ValuesReaderpublic float readFloat()
readFloat in class ValuesReaderpublic double readDouble()
readDouble in class ValuesReaderpublic int readInteger()
readInteger in class ValuesReaderpublic long readLong()
readLong in class ValuesReaderpublic void skip()
ValuesReaderskip in class ValuesReaderCopyright © 2015 The Apache Software Foundation. All rights reserved.