Interface GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>

Type Parameters:
DecimalT - A concrete type that can represent a decimal, e.g, Spark's Decimal.
Enclosing class:
GenericArrowVectorAccessorFactory<DecimalT,Utf8StringT,ArrayT,ChildVectorT extends AutoCloseable>

protected static interface GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>
Create a decimal value of type DecimalT from arrow vector value.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class of concrete decimal type.
    ofBigDecimal(BigDecimal value, int precision, int scale)
    Create a decimal from the given BigDecimal value, precision and scale.
    ofLong(long value, int precision, int scale)
    Create a decimal from the given long value, precision and scale.
  • Method Details

    • getGenericClass

      Class<DecimalT> getGenericClass()
      Class of concrete decimal type.
    • ofLong

      DecimalT ofLong(long value, int precision, int scale)
      Create a decimal from the given long value, precision and scale.
    • ofBigDecimal

      DecimalT ofBigDecimal(BigDecimal value, int precision, int scale)
      Create a decimal from the given BigDecimal value, precision and scale.