Class VectorizedDeltaEncodedValuesReader
java.lang.Object
org.apache.parquet.column.values.ValuesReader
org.apache.iceberg.arrow.vectorized.parquet.VectorizedDeltaEncodedValuesReader
public class VectorizedDeltaEncodedValuesReader
extends org.apache.parquet.column.values.ValuesReader
A
VectorizedValuesReader
implementation for the encoding type DELTA_BINARY_PACKED. This
is adapted from Spark's VectorizedDeltaBinaryPackedReader.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
initFromPage
(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in) org.apache.parquet.io.api.Binary
readBinary
(int len) DELTA_BINARY_PACKED only supports INT32 and INT64boolean
Read a single booleanbyte
readByte()
DELTA_BINARY_PACKED only supports INT32 and INT64double
Read a single doublevoid
readDoubles
(int total, org.apache.arrow.vector.FieldVector vec, int rowId) DELTA_BINARY_PACKED only supports INT32 and INT64float
Read a single floatvoid
readFloats
(int total, org.apache.arrow.vector.FieldVector vec, int rowId) DELTA_BINARY_PACKED only supports INT32 and INT64int
void
readIntegers
(int total, org.apache.arrow.vector.FieldVector vec, int rowId) long
readLong()
void
readLongs
(int total, org.apache.arrow.vector.FieldVector vec, int rowId) short
DELTA_BINARY_PACKED only supports INT32 and INT64void
skip()
The Iceberg reader currently does not do skippingMethods inherited from class org.apache.parquet.column.values.ValuesReader
getNextOffset, initFromPage, initFromPage, readBoolean, readBytes, readDouble, readFloat, readValueDictionaryId, skip, updateNextOffset
-
Field Details
-
INT_SIZE
static final int INT_SIZE- See Also:
-
LONG_SIZE
static final int LONG_SIZE- See Also:
-
FLOAT_SIZE
static final int FLOAT_SIZE- See Also:
-
DOUBLE_SIZE
static final int DOUBLE_SIZE- See Also:
-
-
Constructor Details
-
VectorizedDeltaEncodedValuesReader
public VectorizedDeltaEncodedValuesReader()
-
-
Method Details
-
initFromPage
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in) throws IOException - Overrides:
initFromPage
in classorg.apache.parquet.column.values.ValuesReader
- Throws:
IOException
-
readByte
public byte readByte()DELTA_BINARY_PACKED only supports INT32 and INT64 -
readShort
public short readShort()DELTA_BINARY_PACKED only supports INT32 and INT64 -
readInteger
public int readInteger()- Overrides:
readInteger
in classorg.apache.parquet.column.values.ValuesReader
-
readLong
public long readLong()- Overrides:
readLong
in classorg.apache.parquet.column.values.ValuesReader
-
skip
public void skip()The Iceberg reader currently does not do skipping- Specified by:
skip
in classorg.apache.parquet.column.values.ValuesReader
-
readBinary
public org.apache.parquet.io.api.Binary readBinary(int len) DELTA_BINARY_PACKED only supports INT32 and INT64 -
readIntegers
public void readIntegers(int total, org.apache.arrow.vector.FieldVector vec, int rowId) -
readLongs
public void readLongs(int total, org.apache.arrow.vector.FieldVector vec, int rowId) -
readFloats
public void readFloats(int total, org.apache.arrow.vector.FieldVector vec, int rowId) DELTA_BINARY_PACKED only supports INT32 and INT64 -
readDoubles
public void readDoubles(int total, org.apache.arrow.vector.FieldVector vec, int rowId) DELTA_BINARY_PACKED only supports INT32 and INT64 -
readBoolean
boolean readBoolean()Read a single boolean -
readFloat
float readFloat()Read a single float -
readDouble
double readDouble()Read a single double
-