Class VectorHolder
- java.lang.Object
-
- org.apache.iceberg.arrow.vectorized.VectorHolder
-
- Direct Known Subclasses:
VectorHolder.ConstantVectorHolder
,VectorHolder.DeletedVectorHolder
,VectorHolder.PositionVectorHolder
public class VectorHolder extends java.lang.Object
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 Classes Modifier and Type Class Description static class
VectorHolder.ConstantVectorHolder<T>
A Vector Holder which does not actually produce values, consumers of this class should use the constantValue to populate their ColumnVector implementation.static class
VectorHolder.DeletedVectorHolder
static class
VectorHolder.PositionVectorHolder
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> VectorHolder
constantHolder(int numRows, T constantValue)
Deprecated.since 1.4.0, will be removed in 1.5.0; use typed constant holders instead.static <T> VectorHolder
constantHolder(Types.NestedField icebergField, int numRows, T constantValue)
static VectorHolder
deletedVectorHolder(int numRows)
org.apache.parquet.column.ColumnDescriptor
descriptor()
org.apache.parquet.column.Dictionary
dictionary()
static VectorHolder
dummyHolder(int numRows)
Types.NestedField
icebergField()
Type
icebergType()
boolean
isDictionaryEncoded()
boolean
isDummy()
NullabilityHolder
nullabilityHolder()
int
numValues()
org.apache.arrow.vector.FieldVector
vector()
-
-
-
Constructor Detail
-
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 Detail
-
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
public NullabilityHolder nullabilityHolder()
-
icebergType
public Type icebergType()
-
icebergField
public Types.NestedField icebergField()
-
numValues
public int numValues()
-
constantHolder
public static <T> VectorHolder constantHolder(Types.NestedField icebergField, int numRows, T constantValue)
-
constantHolder
@Deprecated public static <T> VectorHolder constantHolder(int numRows, T constantValue)
Deprecated.since 1.4.0, will be removed in 1.5.0; use typed constant holders instead.
-
deletedVectorHolder
public static VectorHolder deletedVectorHolder(int numRows)
-
dummyHolder
public static VectorHolder dummyHolder(int numRows)
-
isDummy
public boolean isDummy()
-
-