public class FixedPrecisionNumeric extends PassThroughLogicalType<java.math.BigDecimal>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_IDENTIFIER
Identifier of the unspecified precision numeric type.
|
static java.lang.String |
IDENTIFIER |
Modifier and Type | Method and Description |
---|---|
static FixedPrecisionNumeric |
of(int scale)
Create a FixedPrecisionNumeric instance with specified scale and unspecified precision.
|
static FixedPrecisionNumeric |
of(int precision,
int scale)
Create a FixedPrecisionNumeric instance with specified precision and scale.
|
static FixedPrecisionNumeric |
of(Row row)
Create a FixedPrecisionNumeric instance with specified argument row.
|
java.math.BigDecimal |
toInputType(java.math.BigDecimal base)
Convert the Java type used by the base
Schema.FieldType to the input type. |
getArgument, getArgumentType, getBaseType, getIdentifier, toBaseType
public static final java.lang.String IDENTIFIER
public static final java.lang.String BASE_IDENTIFIER
Schema.FieldType.DECIMAL
. It is the underlying representation type of FixedPrecisionNumeric logical
type in order to be compatible with existing Java field types.public static FixedPrecisionNumeric of(int precision, int scale)
public static FixedPrecisionNumeric of(int scale)
public static FixedPrecisionNumeric of(Row row)
public java.math.BigDecimal toInputType(java.math.BigDecimal base)
Schema.LogicalType
Schema.FieldType
to the input type.toInputType
in interface Schema.LogicalType<java.math.BigDecimal,java.math.BigDecimal>
toInputType
in class PassThroughLogicalType<java.math.BigDecimal>