Class VectorHolder
- java.lang.Object
-
- org.apache.iceberg.arrow.vectorized.VectorHolder
-
- Direct Known Subclasses:
VectorHolder.ConstantVectorHolder
,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.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, Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> VectorHolder
constantHolder(int numRows, T constantValue)
org.apache.parquet.column.ColumnDescriptor
descriptor()
org.apache.parquet.column.Dictionary
dictionary()
static VectorHolder
dummyHolder(int numRows)
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, Type type)
-
-
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()
-
numValues
public int numValues()
-
constantHolder
public static <T> VectorHolder constantHolder(int numRows, T constantValue)
-
dummyHolder
public static VectorHolder dummyHolder(int numRows)
-
isDummy
public boolean isDummy()
-
-