@Public public class DecimalType extends DataType
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_SCALE |
static int |
MAX_PRECISION |
static int |
MIN_PRECISION |
static int |
MIN_SCALE |
| 构造器和说明 |
|---|
DecimalType() |
DecimalType(boolean isNullable,
int precision,
int scale) |
DecimalType(int precision) |
DecimalType(int precision,
int scale) |
| 限定符和类型 | 方法和说明 |
|---|---|
<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, withNullabilitypublic 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)
DataTypepublic String asSQLString()
DataTypeasSQLString 在类中 DataTypepublic <R> R accept(DataTypeVisitor<R> visitor)
Copyright © 2023 The Apache Software Foundation. All rights reserved.