Package org.apache.calcite.sql.type
Class SqlTypeTransformCascade
java.lang.Object
org.apache.calcite.sql.type.SqlTypeTransformCascade
- All Implemented Interfaces:
SqlReturnTypeInference
Strategy to infer the type of an operator call from the type of the operands
by using one
SqlReturnTypeInference rule and a combination of
SqlTypeTransforms.-
Constructor Summary
ConstructorsConstructorDescriptionSqlTypeTransformCascade(SqlReturnTypeInference rule, SqlTypeTransform... transforms) Creates a SqlTypeTransformCascade from a rule and an array of one or more transforms. -
Method Summary
Modifier and TypeMethodDescription@Nullable RelDataTypeinferReturnType(SqlOperatorBinding opBinding) Infers the return type of a call to anSqlOperator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.type.SqlReturnTypeInference
andThen, orElse
-
Constructor Details
-
SqlTypeTransformCascade
Creates a SqlTypeTransformCascade from a rule and an array of one or more transforms.
-
-
Method Details
-
inferReturnType
Description copied from interface:SqlReturnTypeInferenceInfers the return type of a call to anSqlOperator.- Specified by:
inferReturnTypein interfaceSqlReturnTypeInference- Parameters:
opBinding- description of operator binding- Returns:
- inferred type; may be null
-