public class ExplicitOperatorBinding extends SqlOperatorBinding
ExplicitOperatorBinding implements SqlOperatorBinding
via an underlying array of known operand types.| Modifier and Type | Field and Description |
|---|---|
private SqlOperatorBinding |
delegate |
private List<RelDataType> |
types |
typeFactory| Modifier | Constructor and Description |
|---|---|
|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
List<RelDataType> types) |
|
ExplicitOperatorBinding(SqlOperatorBinding delegate,
List<RelDataType> types) |
private |
ExplicitOperatorBinding(SqlOperatorBinding delegate,
RelDataTypeFactory typeFactory,
SqlOperator operator,
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, getOperandLiteralValue, getOperandLiteralValue, getOperandMonotonicity, getOperator, getStringLiteralOperand, getTypeFactory, hasFilter, isOperandLiteralprivate final List<RelDataType> types
private final SqlOperatorBinding delegate
public ExplicitOperatorBinding(SqlOperatorBinding delegate, List<RelDataType> types)
public ExplicitOperatorBinding(RelDataTypeFactory typeFactory, SqlOperator operator, List<RelDataType> types)
private ExplicitOperatorBinding(SqlOperatorBinding delegate, 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–2018 The Apache Software Foundation. All rights reserved.