Package org.apache.calcite.sql.type
Class OrdinalReturnTypeInference
java.lang.Object
org.apache.calcite.sql.type.OrdinalReturnTypeInference
- All Implemented Interfaces:
SqlReturnTypeInference
Returns the type of the operand at a particular 0-based ordinal position.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninferReturnType
(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, wait
Methods inherited from interface org.apache.calcite.sql.type.SqlReturnTypeInference
andThen, orElse
-
Constructor Details
-
OrdinalReturnTypeInference
public OrdinalReturnTypeInference(int ordinal)
-
-
Method Details
-
inferReturnType
Description copied from interface:SqlReturnTypeInference
Infers the return type of a call to anSqlOperator
.- Specified by:
inferReturnType
in interfaceSqlReturnTypeInference
- Parameters:
opBinding
- description of operator binding- Returns:
- inferred type; may be null
-