Package org.apache.calcite.sql.type
Class OrdinalReturnTypeInference
- java.lang.Object
-
- org.apache.calcite.sql.type.OrdinalReturnTypeInference
-
- All Implemented Interfaces:
SqlReturnTypeInference
public class OrdinalReturnTypeInference extends java.lang.Object implements SqlReturnTypeInference
Returns the type of the operand at a particular 0-based ordinal position.
-
-
Field Summary
Fields Modifier and Type Field Description private int
ordinal
-
Constructor Summary
Constructors Constructor Description OrdinalReturnTypeInference(int ordinal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelDataType
inferReturnType(SqlOperatorBinding opBinding)
Infers the return type of a call to anSqlOperator
.
-
-
-
Method Detail
-
inferReturnType
public RelDataType inferReturnType(SqlOperatorBinding opBinding)
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
-
-