public final class DecimalType extends DataType
java.math.BigDecimal
values.
A Decimal that must have fixed precision (the maximum number of digits) and scale (the number
of digits on right side of dot).
The precision can be up to 38, scale can also be up to 38 (less or equal to precision).
The default precision and scale is (10, 0).Modifier and Type | Field and Description |
---|---|
static DecimalType |
USER_DEFAULT |
Constructor and Description |
---|
DecimalType(int precision,
int scale) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
equivalent(DataType dt) |
int |
getPrecision() |
int |
getScale() |
int |
hashCode() |
fromJson, getCatalogString, getSimpleString, getTypeName, toJson, toPrettyJson
public static final DecimalType USER_DEFAULT
public int getPrecision()
public int getScale()
public boolean equivalent(DataType dt)
equivalent
in class DataType