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
Nested ClassesModifier and TypeClassDescriptionstatic classA Vector Holder which does not actually produce values, consumers of this class should use the constantValue to populate their ColumnVector implementation.static classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVectorHolder(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> VectorHolderconstantHolder(Types.NestedField icebergField, int numRows, T constantValue) static VectorHolderdeletedVectorHolder(int numRows) org.apache.parquet.column.ColumnDescriptororg.apache.parquet.column.Dictionarystatic VectorHolderdummyHolder(int numRows) booleanbooleanisDummy()intorg.apache.arrow.vector.FieldVectorvector()static VectorHoldervectorHolder(org.apache.arrow.vector.FieldVector vector, Types.NestedField icebergField, NullabilityHolder nulls)
-
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() -
vectorHolder
public static VectorHolder vectorHolder(org.apache.arrow.vector.FieldVector vector, Types.NestedField icebergField, NullabilityHolder nulls)
-