Package org.apache.calcite.sql.type
Class ExplicitOperandTypeInference
- java.lang.Object
-
- org.apache.calcite.sql.type.ExplicitOperandTypeInference
-
- All Implemented Interfaces:
SqlOperandTypeInference
public class ExplicitOperandTypeInference extends java.lang.Object implements SqlOperandTypeInference
ExplicitOperandTypeInferences implementsSqlOperandTypeInference
by explicitly supplying a type for each parameter.
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<RelDataType>
paramTypes
-
Constructor Summary
Constructors Constructor Description ExplicitOperandTypeInference(com.google.common.collect.ImmutableList<RelDataType> paramTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inferOperandTypes(SqlCallBinding callBinding, RelDataType returnType, RelDataType[] operandTypes)
Infers any unknown operand types.
-
-
-
Field Detail
-
paramTypes
private final com.google.common.collect.ImmutableList<RelDataType> paramTypes
-
-
Constructor Detail
-
ExplicitOperandTypeInference
ExplicitOperandTypeInference(com.google.common.collect.ImmutableList<RelDataType> paramTypes)
-
-
Method Detail
-
inferOperandTypes
public void inferOperandTypes(SqlCallBinding callBinding, RelDataType returnType, RelDataType[] operandTypes)
Description copied from interface:SqlOperandTypeInference
Infers any unknown operand types.- Specified by:
inferOperandTypes
in interfaceSqlOperandTypeInference
- Parameters:
callBinding
- description of the call being analyzedreturnType
- the type known or inferred for the result of the calloperandTypes
- receives the inferred types for all operands
-
-