public abstract class ValuesReader extends Object
| Constructor and Description |
|---|
ValuesReader() |
| Modifier and Type | Method and Description |
|---|---|
int |
getNextOffset()
Deprecated.
Will be removed in 2.0.0
|
void |
initFromPage(int valueCount,
byte[] page,
int offset)
Deprecated.
|
void |
initFromPage(int valueCount,
ByteBufferInputStream in)
Called to initialize the column reader from a part of a page.
|
void |
initFromPage(int valueCount,
ByteBuffer page,
int offset)
Deprecated.
Will be removed in 2.0.0
|
boolean |
readBoolean() |
Binary |
readBytes() |
double |
readDouble() |
float |
readFloat() |
int |
readInteger() |
long |
readLong() |
int |
readValueDictionaryId()
usable when the encoding is dictionary based
|
abstract void |
skip()
Skips the next value in the page
|
void |
skip(int n)
Skips the next n values in the page
|
protected void |
updateNextOffset(int bytesRead) |
@Deprecated public void initFromPage(int valueCount, ByteBuffer page, int offset) throws IOException
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@Deprecated public void initFromPage(int valueCount, byte[] page, int offset) throws IOException
IOExceptioninitFromPage(int, ByteBuffer, int)public void initFromPage(int valueCount,
ByteBufferInputStream in)
throws IOException
valueCount - count of values in this pagein - an input stream containing the page data at the correct offsetIOException - if there is an exception while reading from the input stream@Deprecated public int getNextOffset()
protected void updateNextOffset(int bytesRead)
public int readValueDictionaryId()
public boolean readBoolean()
public Binary readBytes()
public float readFloat()
public double readDouble()
public int readInteger()
public long readLong()
public abstract void skip()
public void skip(int n)
n - the number of values to be skippedCopyright © 2020 The Apache Software Foundation. All rights reserved.