Class VectorizedDeltaByteArrayValuesReader
java.lang.Object
org.apache.parquet.column.values.ValuesReader
org.apache.iceberg.arrow.vectorized.parquet.VectorizedDeltaByteArrayValuesReader
public class VectorizedDeltaByteArrayValuesReader
extends org.apache.parquet.column.values.ValuesReader
A
VectorizedValuesReader implementation for DELTA_BYTE_ARRAY encoding. This encoding
stores delta-encoded prefix lengths followed by suffixes encoded as DELTA_LENGTH_BYTE_ARRAY. Each
value is reconstructed by taking the prefix of the previous value and appending the suffix. This
is adapted from Spark's VectorizedDeltaByteArrayReader.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in) org.apache.parquet.io.api.BinaryreadBinary(int len) default booleanRead a single booleandefault bytereadByte()Read a single bytedefault doubleRead a single doubledefault voidreadDoubles(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` doubles into `vec` starting at `vec[rowId]`default floatRead a single floatdefault voidreadFloats(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` floats into `vec` starting at `vec[rowId]`intdefault voidreadIntegers(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` integers into `vec` starting at `vec[rowId]`default longreadLong()Read a single longdefault voidreadLongs(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` longs into `vec` starting at `vec[rowId]`default shortRead a single shortvoidskip()Methods inherited from class org.apache.parquet.column.values.ValuesReader
getNextOffset, initFromPage, initFromPage, readBoolean, readBytes, readDouble, readFloat, readLong, 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
-
VectorizedDeltaByteArrayValuesReader
public VectorizedDeltaByteArrayValuesReader()
-
-
Method Details
-
initFromPage
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in) throws IOException - Overrides:
initFromPagein classorg.apache.parquet.column.values.ValuesReader- Throws:
IOException
-
readInteger
public int readInteger()- Overrides:
readIntegerin classorg.apache.parquet.column.values.ValuesReader
-
readBinary
public org.apache.parquet.io.api.Binary readBinary(int len) -
skip
public void skip()- Specified by:
skipin classorg.apache.parquet.column.values.ValuesReader
-
readBoolean
default boolean readBoolean()Read a single boolean -
readByte
default byte readByte()Read a single byte -
readShort
default short readShort()Read a single short -
readLong
default long readLong()Read a single long -
readFloat
default float readFloat()Read a single float -
readDouble
default double readDouble()Read a single double -
readIntegers
default void readIntegers(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` integers into `vec` starting at `vec[rowId]` -
readLongs
default void readLongs(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` longs into `vec` starting at `vec[rowId]` -
readFloats
default void readFloats(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` floats into `vec` starting at `vec[rowId]` -
readDoubles
default void readDoubles(int total, org.apache.arrow.vector.FieldVector vec, int rowId) Read `total` doubles into `vec` starting at `vec[rowId]`
-