public class ExplicitOperatorBinding extends SqlOperatorBinding
ExplicitOperatorBinding implements SqlOperatorBinding
via an underlying array of known operand types.typeFactory| Constructor and Description |
|---|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
ExplicitOperatorBinding(SqlOperatorBinding delegate,
List<RelDataType> types) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOperandCount() |
RelDataType |
getOperandType(int ordinal)
Gets the type of a bound 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, getIntLiteralOperand, getOperator, getStringLiteralOperand, getTypeFactorypublic ExplicitOperatorBinding(SqlOperatorBinding delegate, List<RelDataType> types)
public ExplicitOperatorBinding(RelDataTypeFactory typeFactory, SqlOperator operator, List<RelDataType> types)
public 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 nullpublic 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 constantCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.