Package org.apache.iceberg.parquet
Class ValuesAsBytesReader
- java.lang.Object
-
- org.apache.parquet.column.values.ValuesReader
-
- org.apache.iceberg.parquet.ValuesAsBytesReader
-
public class ValuesAsBytesReader extends org.apache.parquet.column.values.ValuesReader
Implements aValuesReader
specifically to read given number of bytes from the underlyingByteBufferInputStream
.
-
-
Constructor Summary
Constructors Constructor Description ValuesAsBytesReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
initFromPage
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in)
- Overrides:
initFromPage
in classorg.apache.parquet.column.values.ValuesReader
-
skip
public void skip()
- Specified by:
skip
in classorg.apache.parquet.column.values.ValuesReader
-
getBuffer
public java.nio.ByteBuffer getBuffer(int length)
-
readInteger
public final int readInteger()
- Overrides:
readInteger
in classorg.apache.parquet.column.values.ValuesReader
-
readLong
public final long readLong()
- Overrides:
readLong
in classorg.apache.parquet.column.values.ValuesReader
-
readFloat
public final float readFloat()
- Overrides:
readFloat
in classorg.apache.parquet.column.values.ValuesReader
-
readDouble
public final double readDouble()
- Overrides:
readDouble
in classorg.apache.parquet.column.values.ValuesReader
-
readBoolean
public final boolean readBoolean()
- Overrides:
readBoolean
in classorg.apache.parquet.column.values.ValuesReader
-
readBooleanAsInt
public final int readBooleanAsInt()
Returns 1 if true, 0 otherwise.
-
-