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 a
ValuesReader
specifically to read given number of bytes from the underlying
ByteBufferInputStream
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBuffer
(int length) void
initFromPage
(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in) final boolean
final int
Returns 1 if true, 0 otherwise.final double
final float
final int
final long
readLong()
void
skip()
Methods inherited from class org.apache.parquet.column.values.ValuesReader
getNextOffset, initFromPage, initFromPage, readBytes, readValueDictionaryId, skip, updateNextOffset
-
Constructor Details
-
ValuesAsBytesReader
public ValuesAsBytesReader()
-
-
Method Details
-
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
-
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.
-