private static class RexCallBinding.RexCastCallBinding extends RexCallBinding
SqlCall
, CAST needs to pretend that it
has two arguments, the second of which is the target type.Modifier and Type | Field and Description |
---|---|
private RelDataType |
type |
typeFactory
Constructor and Description |
---|
RexCastCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
java.util.List<? extends RexNode> operands,
RelDataType type,
java.util.List<RelCollation> inputCollations) |
Modifier and Type | Method and Description |
---|---|
RelDataType |
getOperandType(int ordinal)
Gets the type of a bound operand.
|
create, getIntLiteralOperand, getOperandCount, getOperandLiteralValue, getOperandMonotonicity, getStringLiteralOperand, isOperandLiteral, isOperandNull, newError
collectOperandTypes, getColumnListParamInfo, getCursorOperand, getGroupCount, getOperandLiteralValue, getOperator, getTypeFactory, hasFilter
private final RelDataType type
RexCastCallBinding(RelDataTypeFactory typeFactory, SqlOperator sqlOperator, java.util.List<? extends RexNode> operands, RelDataType type, java.util.List<RelCollation> inputCollations)
public RelDataType getOperandType(int ordinal)
SqlOperatorBinding
getOperandType
in class RexCallBinding
ordinal
- zero-based ordinal of operand of interestCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.