DecimalT - A concrete type that can represent a decimal.Utf8StringT - A concrete type that can represent a UTF8 string.ArrayT - A concrete type that can represent an array value in a list vector, e.g. Spark's
ColumnarArray.ChildVectorT - A concrete type that can represent a child vector in a struct, e.g. Spark's
ArrowColumnVector.public class GenericArrowVectorAccessorFactory<DecimalT,Utf8StringT,ArrayT,ChildVectorT extends java.lang.AutoCloseable>
extends java.lang.Object
ArrowVectorAccessor from VectorHolder. It provides a
generic implementation for following Arrow types:
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
GenericArrowVectorAccessorFactory.ArrayFactory<ChildVectorT,ArrayT>
Create an array value of type
ArrayT from arrow vector value. |
protected static interface |
GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>
Create a decimal value of type
DecimalT from arrow vector value. |
protected static interface |
GenericArrowVectorAccessorFactory.StringFactory<Utf8StringT>
Create a UTF8 String value of type
Utf8StringT from arrow vector value. |
protected static interface |
GenericArrowVectorAccessorFactory.StructChildFactory<ChildVectorT>
Create a struct child vector of type
ChildVectorT from arrow vector value. |
| Modifier | Constructor and Description |
|---|---|
protected |
GenericArrowVectorAccessorFactory(java.util.function.Supplier<GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>> decimalFactorySupplier,
java.util.function.Supplier<GenericArrowVectorAccessorFactory.StringFactory<Utf8StringT>> stringFactorySupplier,
java.util.function.Supplier<GenericArrowVectorAccessorFactory.StructChildFactory<ChildVectorT>> structChildFactorySupplier,
java.util.function.Supplier<GenericArrowVectorAccessorFactory.ArrayFactory<ChildVectorT,ArrayT>> arrayFactorySupplier)
The constructor is parameterized using the decimal, string, struct and array factories.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowVectorAccessor<DecimalT,Utf8StringT,ArrayT,ChildVectorT> |
getVectorAccessor(VectorHolder holder) |
protected GenericArrowVectorAccessorFactory(java.util.function.Supplier<GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>> decimalFactorySupplier, java.util.function.Supplier<GenericArrowVectorAccessorFactory.StringFactory<Utf8StringT>> stringFactorySupplier, java.util.function.Supplier<GenericArrowVectorAccessorFactory.StructChildFactory<ChildVectorT>> structChildFactorySupplier, java.util.function.Supplier<GenericArrowVectorAccessorFactory.ArrayFactory<ChildVectorT,ArrayT>> arrayFactorySupplier)
UnsupportedOperationException.public ArrowVectorAccessor<DecimalT,Utf8StringT,ArrayT,ChildVectorT> getVectorAccessor(VectorHolder holder)