public class ValuesAsBytesReader
extends org.apache.parquet.column.values.ValuesReader
ValuesReader
specifically to read given number of bytes from the underlying ByteBufferInputStream
.Constructor and Description |
---|
ValuesAsBytesReader() |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getBuffer(int length) |
void |
initFromPage(int valueCount,
org.apache.parquet.bytes.ByteBufferInputStream in) |
boolean |
readBoolean() |
int |
readBooleanAsInt()
Returns 1 if true, 0 otherwise.
|
double |
readDouble() |
float |
readFloat() |
int |
readInteger() |
long |
readLong() |
void |
skip() |
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in)
initFromPage
in class org.apache.parquet.column.values.ValuesReader
public void skip()
skip
in class org.apache.parquet.column.values.ValuesReader
public java.nio.ByteBuffer getBuffer(int length)
public final int readInteger()
readInteger
in class org.apache.parquet.column.values.ValuesReader
public final long readLong()
readLong
in class org.apache.parquet.column.values.ValuesReader
public final float readFloat()
readFloat
in class org.apache.parquet.column.values.ValuesReader
public final double readDouble()
readDouble
in class org.apache.parquet.column.values.ValuesReader
public final boolean readBoolean()
readBoolean
in class org.apache.parquet.column.values.ValuesReader
public final int readBooleanAsInt()