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 TypeMethodDescriptionClass of concrete decimal type.ofBigDecimal
(BigDecimal value, int precision, int scale) Create a decimal from the givenBigDecimal
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 of concrete decimal type. -
ofLong
Create a decimal from the given long value, precision and scale. -
ofBigDecimal
Create a decimal from the givenBigDecimal
value, precision and scale.
-