Package org.apache.calcite.sql.type
Class SqlTypeMappingRules
java.lang.Object
org.apache.calcite.sql.type.SqlTypeMappingRules
This class defines some utilities to build type mapping matrix
which would then use to construct the
SqlTypeMappingRule
rules.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Keeps state while building the type mappings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SqlTypeMappingRules.Builder
builder()
Returns aSqlTypeMappingRules.Builder
to build the type mappings.static SqlTypeMappingRule
instance
(boolean coerce) Returns theSqlTypeMappingRule
instance based on the specifiedcoerce
to indicate whether to return as a type coercion rule.
-
Constructor Details
-
SqlTypeMappingRules
public SqlTypeMappingRules()
-
-
Method Details
-
instance
Returns theSqlTypeMappingRule
instance based on the specifiedcoerce
to indicate whether to return as a type coercion rule.- Parameters:
coerce
- Whether to return rules with type coercion- Returns:
SqlTypeCoercionRule
instance ifcoerce
is true; else returns aSqlTypeAssignmentRule
instance
-
builder
Returns aSqlTypeMappingRules.Builder
to build the type mappings.
-