Class GenericArrowVectorAccessorFactory<DecimalT,​Utf8StringT,​ArrayT,​ChildVectorT extends java.lang.AutoCloseable>

  • Type Parameters:
    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
    This class is creates typed ArrowVectorAccessor from VectorHolder. It provides a generic implementation for following Arrow types:
    • Decimal type can be deserialized to a type that supports decimal, e.g. BigDecimal or Spark's Decimal.
    • UTF8 String type can deserialized to a Java String or Spark's UTF8String.
    • List type: the child elements of a list can be deserialized to Spark's ColumnarArray or similar type.
    • Struct type: the child elements of a struct can be deserialized to a Spark's ArrowColumnVector or similar type.