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 java.lang.AutoCloseable>
protected static interface GenericArrowVectorAccessorFactory.DecimalFactory<DecimalT>
Create a decimal value of typeDecimalT
from arrow vector value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<DecimalT>
getGenericClass()
Class of concrete decimal type.DecimalT
ofBigDecimal(java.math.BigDecimal value, int precision, int scale)
Create a decimal from the givenBigDecimal
value, precision and scale.DecimalT
ofLong(long value, int precision, int scale)
Create a decimal from the given long value, precision and scale.
-
-
-
Method Detail
-
getGenericClass
java.lang.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(java.math.BigDecimal value, int precision, int scale)
Create a decimal from the givenBigDecimal
value, precision and scale.
-
-