@Public public class DecimalType extends DataType
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_SCALE |
static int |
MAX_PRECISION |
static int |
MIN_PRECISION |
static int |
MIN_SCALE |
Constructor and Description |
---|
DecimalType() |
DecimalType(boolean isNullable,
int precision,
int scale) |
DecimalType(int precision) |
DecimalType(int precision,
int scale) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(DataTypeVisitor<R> visitor) |
String |
asSQLString()
Returns a string that summarizes this type as SQL standard string for printing to a console.
|
DataType |
copy(boolean isNullable)
Returns a deep copy of this type with possibly different nullability.
|
boolean |
equals(Object o) |
int |
getPrecision() |
int |
getScale() |
int |
hashCode() |
collectFieldIds, copy, equalsIgnoreNullable, getTypeRoot, is, is, isAnyOf, isAnyOf, isNullable, notNull, nullable, serializeJson, toString, withNullability
public static final int MIN_PRECISION
public static final int MAX_PRECISION
public static final int DEFAULT_PRECISION
public static final int MIN_SCALE
public static final int DEFAULT_SCALE
public DecimalType(boolean isNullable, int precision, int scale)
public DecimalType(int precision, int scale)
public DecimalType(int precision)
public DecimalType()
public int getPrecision()
public int getScale()
public DataType copy(boolean isNullable)
DataType
public String asSQLString()
DataType
asSQLString
in class DataType
public <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.