Class VectorHolder
java.lang.Object
org.apache.iceberg.arrow.vectorized.VectorHolder
- Direct Known Subclasses:
VectorHolder.ConstantVectorHolder
,VectorHolder.DeletedVectorHolder
,VectorHolder.PositionVectorHolder
Container class for holding the Arrow vector storing a batch of values along with other state
needed for reading values out of it.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A Vector Holder which does not actually produce values, consumers of this class should use the constantValue to populate their ColumnVector implementation.static class
static class
-
Constructor Summary
ConstructorDescriptionVectorHolder
(org.apache.parquet.column.ColumnDescriptor columnDescriptor, org.apache.arrow.vector.FieldVector vector, boolean isDictionaryEncoded, org.apache.parquet.column.Dictionary dictionary, NullabilityHolder holder, Types.NestedField icebergField) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> VectorHolder
constantHolder
(Types.NestedField icebergField, int numRows, T constantValue) static VectorHolder
deletedVectorHolder
(int numRows) org.apache.parquet.column.ColumnDescriptor
org.apache.parquet.column.Dictionary
static VectorHolder
dummyHolder
(int numRows) boolean
boolean
isDummy()
int
org.apache.arrow.vector.FieldVector
vector()
-
Constructor Details
-
VectorHolder
public VectorHolder(org.apache.parquet.column.ColumnDescriptor columnDescriptor, org.apache.arrow.vector.FieldVector vector, boolean isDictionaryEncoded, org.apache.parquet.column.Dictionary dictionary, NullabilityHolder holder, Types.NestedField icebergField)
-
-
Method Details
-
descriptor
public org.apache.parquet.column.ColumnDescriptor descriptor() -
vector
public org.apache.arrow.vector.FieldVector vector() -
isDictionaryEncoded
public boolean isDictionaryEncoded() -
dictionary
public org.apache.parquet.column.Dictionary dictionary() -
nullabilityHolder
-
icebergType
-
icebergField
-
numValues
public int numValues() -
constantHolder
public static <T> VectorHolder constantHolder(Types.NestedField icebergField, int numRows, T constantValue) -
deletedVectorHolder
-
dummyHolder
-
isDummy
public boolean isDummy()
-