public interface RelDataTypeSystem
Provides behaviors concerning type limits and behaviors. For example, in the default system, a DECIMAL can have maximum precision 19, but Hive overrides to 38.
The default implementation is DEFAULT.
| Modifier and Type | Field and Description |
|---|---|
static RelDataTypeSystem |
DEFAULT
Default type system.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefaultPrecision(SqlTypeName typeName)
Returns default precision for this type if supported, otherwise -1 if
precision is either unsupported or must be specified explicitly.
|
int |
getMaxNumericPrecision()
Returns the maximum precision of a NUMERIC or DECIMAL type.
|
int |
getMaxNumericScale()
Returns the maximum scale of a NUMERIC or DECIMAL type.
|
int |
getMaxPrecision(SqlTypeName typeName)
Returns the maximum precision (or length) allowed for this type, or -1 if
precision/length are not applicable for this type.
|
int |
getMaxScale(SqlTypeName typeName)
Returns the maximum scale of a given type.
|
static final RelDataTypeSystem DEFAULT
int getMaxScale(SqlTypeName typeName)
int getDefaultPrecision(SqlTypeName typeName)
int getMaxPrecision(SqlTypeName typeName)
int getMaxNumericScale()
int getMaxNumericPrecision()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.