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 java.util.List<RelDataType> |
types |
typeFactory
Modifier | Constructor and Description |
---|---|
|
ExplicitOperatorBinding(RelDataTypeFactory typeFactory,
SqlOperator operator,
java.util.List<RelDataType> types) |
|
ExplicitOperatorBinding(SqlOperatorBinding delegate,
java.util.List<RelDataType> types) |
private |
ExplicitOperatorBinding(SqlOperatorBinding delegate,
RelDataTypeFactory typeFactory,
SqlOperator operator,
java.util.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, isOperandLiteral
private final java.util.List<RelDataType> types
private final SqlOperatorBinding delegate
public ExplicitOperatorBinding(SqlOperatorBinding delegate, java.util.List<RelDataType> types)
public ExplicitOperatorBinding(RelDataTypeFactory typeFactory, SqlOperator operator, java.util.List<RelDataType> types)
private ExplicitOperatorBinding(SqlOperatorBinding delegate, RelDataTypeFactory typeFactory, SqlOperator operator, java.util.List<RelDataType> types)
public int getOperandCount()
getOperandCount
in class SqlOperatorBinding
public RelDataType getOperandType(int ordinal)
SqlOperatorBinding
getOperandType
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interestpublic CalciteException newError(Resources.ExInst<SqlValidatorException> e)
SqlOperatorBinding
newError
in class SqlOperatorBinding
e
- Validation error, not nullpublic boolean isOperandNull(int ordinal, boolean allowCast)
SqlOperatorBinding
This is only relevant for SQL validation.
isOperandNull
in class SqlOperatorBinding
ordinal
- zero-based ordinal of operand of interestallowCast
- whether to regard CAST(constant) as a constantCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.