Package org.apache.calcite.rex
Class RexCallBinding.RexCastCallBinding
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperatorBinding
-
- org.apache.calcite.rex.RexCallBinding
-
- org.apache.calcite.rex.RexCallBinding.RexCastCallBinding
-
- Enclosing class:
- RexCallBinding
private static class RexCallBinding.RexCastCallBinding extends RexCallBinding
To be compatible withSqlCall
, CAST needs to pretend that it has two arguments, the second of which is the target type.
-
-
Field Summary
Fields Modifier and Type Field Description private RelDataType
type
-
Fields inherited from class org.apache.calcite.sql.SqlOperatorBinding
typeFactory
-
-
Constructor Summary
Constructors Constructor Description RexCastCallBinding(RelDataTypeFactory typeFactory, SqlOperator sqlOperator, java.util.List<? extends RexNode> operands, RelDataType type, java.util.List<RelCollation> inputCollations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelDataType
getOperandType(int ordinal)
Gets the type of a bound operand.-
Methods inherited from class org.apache.calcite.rex.RexCallBinding
create, getIntLiteralOperand, getOperandCount, getOperandLiteralValue, getOperandMonotonicity, getStringLiteralOperand, isOperandLiteral, isOperandNull, newError
-
Methods inherited from class org.apache.calcite.sql.SqlOperatorBinding
collectOperandTypes, getColumnListParamInfo, getCursorOperand, getGroupCount, getOperandLiteralValue, getOperator, getTypeFactory, hasFilter
-
-
-
-
Field Detail
-
type
private final RelDataType type
-
-
Constructor Detail
-
RexCastCallBinding
RexCastCallBinding(RelDataTypeFactory typeFactory, SqlOperator sqlOperator, java.util.List<? extends RexNode> operands, RelDataType type, java.util.List<RelCollation> inputCollations)
-
-
Method Detail
-
getOperandType
public RelDataType getOperandType(int ordinal)
Description copied from class:SqlOperatorBinding
Gets the type of a bound operand.- Overrides:
getOperandType
in classRexCallBinding
- Parameters:
ordinal
- zero-based ordinal of operand of interest- Returns:
- bound operand type
-
-