public class RexCallBinding extends SqlOperatorBinding
RexCallBinding implements SqlOperatorBinding by
referring to an underlying collection of RexNode operands.typeFactory| Constructor and Description |
|---|
RexCallBinding(RelDataTypeFactory typeFactory,
SqlOperator sqlOperator,
List<? extends RexNode> operands) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIntLiteralOperand(int ordinal)
Gets the integer value of a numeric literal operand.
|
int |
getOperandCount() |
RelDataType |
getOperandType(int ordinal)
Gets the type of a bound operand.
|
String |
getStringLiteralOperand(int ordinal)
Gets the string value of a string literal operand.
|
boolean |
isOperandNull(int ordinal,
boolean allowCast)
Determines whether a bound operand is NULL.
|
CalciteException |
newError(Resources.ExInst<SqlValidatorException> e)
Wraps a validation error with context appropriate to this operator call.
|
collectOperandTypes, getColumnListParamInfo, getCursorOperand, getGroupCount, getOperator, getTypeFactorypublic RexCallBinding(RelDataTypeFactory typeFactory, SqlOperator sqlOperator, List<? extends RexNode> operands)
public String getStringLiteralOperand(int ordinal)
SqlOperatorBindinggetStringLiteralOperand in class SqlOperatorBindingordinal - zero-based ordinal of operand of interestpublic int getIntLiteralOperand(int ordinal)
SqlOperatorBindinggetIntLiteralOperand in class SqlOperatorBindingordinal - zero-based ordinal of operand of interestpublic boolean isOperandNull(int ordinal,
boolean allowCast)
SqlOperatorBindingThis is only relevant for SQL validation.
isOperandNull in class SqlOperatorBindingordinal - zero-based ordinal of operand of interestallowCast - whether to regard CAST(constant) as a constantpublic int getOperandCount()
getOperandCount in class SqlOperatorBindingpublic RelDataType getOperandType(int ordinal)
SqlOperatorBindinggetOperandType in class SqlOperatorBindingordinal - zero-based ordinal of operand of interestpublic CalciteException newError(Resources.ExInst<SqlValidatorException> e)
SqlOperatorBindingnewError in class SqlOperatorBindinge - Validation error, not nullCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.