public abstract class RelDataTypeSystemImpl extends Object implements RelDataTypeSystem
RelDataTypeSystem,
providing parameters from the SQL standard.
To implement other type systems, create a derived class and override values as needed.
| Parameter | Value |
|---|---|
| MAX_NUMERIC_SCALE | 19 |
DEFAULT| Constructor and Description |
|---|
RelDataTypeSystemImpl() |
| 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.
|
public int getMaxScale(SqlTypeName typeName)
RelDataTypeSystemgetMaxScale in interface RelDataTypeSystempublic int getDefaultPrecision(SqlTypeName typeName)
RelDataTypeSystemgetDefaultPrecision in interface RelDataTypeSystempublic int getMaxPrecision(SqlTypeName typeName)
RelDataTypeSystemgetMaxPrecision in interface RelDataTypeSystempublic int getMaxNumericScale()
RelDataTypeSystemgetMaxNumericScale in interface RelDataTypeSystempublic int getMaxNumericPrecision()
RelDataTypeSystemgetMaxNumericPrecision in interface RelDataTypeSystemCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.