Package org.apache.calcite.sql.type
Class CursorReturnTypeInference
- java.lang.Object
-
- org.apache.calcite.sql.type.CursorReturnTypeInference
-
- All Implemented Interfaces:
SqlReturnTypeInference
public class CursorReturnTypeInference extends java.lang.Object implements SqlReturnTypeInference
Returns the rowtype of a cursor of the operand at a particular 0-based ordinal position.- See Also:
OrdinalReturnTypeInference
-
-
Field Summary
Fields Modifier and Type Field Description private int
ordinal
-
Constructor Summary
Constructors Constructor Description CursorReturnTypeInference(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
-
-