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
Nested ClassesModifier and TypeClassDescriptionstatic classKeeps state while building the type mappings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlTypeMappingRules.Builderbuilder()Returns aSqlTypeMappingRules.Builderto build the type mappings.static SqlTypeMappingRuleinstance(boolean coerce) Returns theSqlTypeMappingRuleinstance based on the specifiedcoerceto indicate whether to return as a type coercion rule.
-
Constructor Details
-
SqlTypeMappingRules
public SqlTypeMappingRules()
-
-
Method Details
-
instance
Returns theSqlTypeMappingRuleinstance based on the specifiedcoerceto indicate whether to return as a type coercion rule.- Parameters:
coerce- Whether to return rules with type coercion- Returns:
SqlTypeCoercionRuleinstance ifcoerceis true; else returns aSqlTypeAssignmentRuleinstance
-
builder
Returns aSqlTypeMappingRules.Builderto build the type mappings.
-