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, readBoolean
public DictionaryValuesReader(Dictionary dictionary)
public void initFromPage(int valueCount, byte[] page, int offset) throws IOException
ValuesReader
initFromPage
in class ValuesReader
valueCount
- 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 pageIOException
public int readValueDictionaryId()
ValuesReader
readValueDictionaryId
in class ValuesReader
public Binary readBytes()
readBytes
in class ValuesReader
public float readFloat()
readFloat
in class ValuesReader
public double readDouble()
readDouble
in class ValuesReader
public int readInteger()
readInteger
in class ValuesReader
public long readLong()
readLong
in class ValuesReader
public void skip()
ValuesReader
skip
in class ValuesReader
Copyright © 2015. All rights reserved.