public class DelegatingTypeSystem extends Object implements RelDataTypeSystem
RelDataTypeSystem
that sends all methods to an underlying object.DEFAULT| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingTypeSystem(RelDataTypeSystem typeSystem)
Creates a
DelegatingTypeSystem. |
| Modifier and Type | Method and Description |
|---|---|
RelDataType |
deriveAvgAggType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
AVG, STDDEV or
VAR aggregate functions, inferred from its argument type. |
RelDataType |
deriveCovarType(RelDataTypeFactory typeFactory,
RelDataType arg0Type,
RelDataType arg1Type)
Returns the return type of a call to the
COVAR aggregate function,
inferred from its argument types. |
RelDataType |
deriveFractionalRankType(RelDataTypeFactory typeFactory)
Returns the return type of the
CUME_DIST and PERCENT_RANK
aggregate functions. |
RelDataType |
deriveRankType(RelDataTypeFactory typeFactory)
Returns the return type of the
NTILE, RANK,
DENSE_RANK, and ROW_NUMBER aggregate functions. |
RelDataType |
deriveSumType(RelDataTypeFactory typeFactory,
RelDataType argumentType)
Returns the return type of a call to the
SUM aggregate function,
inferred from its argument type. |
int |
getDefaultPrecision(SqlTypeName typeName)
Returns default precision for this type if supported, otherwise -1 if
precision is either unsupported or must be specified explicitly.
|
@Nullable String |
getLiteral(SqlTypeName typeName,
boolean isPrefix)
Returns the LITERAL string for the type, either PREFIX/SUFFIX.
|
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.
|
int |
getNumTypeRadix(SqlTypeName typeName)
Returns the numeric type radix, typically 2 or 10.
|
boolean |
isAutoincrement(SqlTypeName typeName)
Returns whether the type can be auto increment.
|
boolean |
isCaseSensitive(SqlTypeName typeName)
Returns whether the type is case sensitive.
|
boolean |
isSchemaCaseSensitive()
Whether two record types are considered distinct if their field names
are the same but in different cases.
|
boolean |
shouldConvertRaggedUnionTypesToVarying()
Whether the least restrictive type of a number of CHAR types of different
lengths should be a VARCHAR type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitderiveDecimalDivideType, deriveDecimalModType, deriveDecimalMultiplyType, deriveDecimalPlusType, shouldUseDoubleMultiplicationprotected DelegatingTypeSystem(RelDataTypeSystem typeSystem)
DelegatingTypeSystem.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 RelDataTypeSystempublic @Nullable String getLiteral(SqlTypeName typeName, boolean isPrefix)
RelDataTypeSystemgetLiteral in interface RelDataTypeSystempublic boolean isCaseSensitive(SqlTypeName typeName)
RelDataTypeSystemisCaseSensitive in interface RelDataTypeSystempublic boolean isAutoincrement(SqlTypeName typeName)
RelDataTypeSystemisAutoincrement in interface RelDataTypeSystempublic int getNumTypeRadix(SqlTypeName typeName)
RelDataTypeSystemgetNumTypeRadix in interface RelDataTypeSystempublic RelDataType deriveSumType(RelDataTypeFactory typeFactory, RelDataType argumentType)
RelDataTypeSystemSUM aggregate function,
inferred from its argument type.deriveSumType in interface RelDataTypeSystempublic RelDataType deriveAvgAggType(RelDataTypeFactory typeFactory, RelDataType argumentType)
RelDataTypeSystemAVG, STDDEV or
VAR aggregate functions, inferred from its argument type.deriveAvgAggType in interface RelDataTypeSystempublic RelDataType deriveCovarType(RelDataTypeFactory typeFactory, RelDataType arg0Type, RelDataType arg1Type)
RelDataTypeSystemCOVAR aggregate function,
inferred from its argument types.deriveCovarType in interface RelDataTypeSystempublic RelDataType deriveFractionalRankType(RelDataTypeFactory typeFactory)
RelDataTypeSystemCUME_DIST and PERCENT_RANK
aggregate functions.deriveFractionalRankType in interface RelDataTypeSystempublic RelDataType deriveRankType(RelDataTypeFactory typeFactory)
RelDataTypeSystemNTILE, RANK,
DENSE_RANK, and ROW_NUMBER aggregate functions.deriveRankType in interface RelDataTypeSystempublic boolean isSchemaCaseSensitive()
RelDataTypeSystemisSchemaCaseSensitive in interface RelDataTypeSystempublic boolean shouldConvertRaggedUnionTypesToVarying()
RelDataTypeSystemshouldConvertRaggedUnionTypesToVarying in interface RelDataTypeSystemCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.