Package org.apache.calcite.sql
Class ExplicitOperatorBinding
java.lang.Object
org.apache.calcite.sql.SqlOperatorBinding
org.apache.calcite.sql.ExplicitOperatorBinding
ExplicitOperatorBinding implements SqlOperatorBinding
 via an underlying array of known operand types.- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorBindingtypeFactory
- 
Constructor SummaryConstructorsConstructorDescriptionExplicitOperatorBinding(RelDataTypeFactory typeFactory, SqlOperator operator, List<RelDataType> types) ExplicitOperatorBinding(SqlOperatorBinding delegate, List<RelDataType> types) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the number of bound operands.getOperandType(int ordinal) Gets the type of a bound operand.booleanisOperandNull(int ordinal, boolean allowCast) Determines whether a bound operand is NULL.newError(org.apache.calcite.runtime.Resources.ExInst<SqlValidatorException> e) Wraps a validation error with context appropriate to this operator call.Methods inherited from class org.apache.calcite.sql.SqlOperatorBindingcollectOperandTypes, getCollationType, getColumnListParamInfo, getCursorOperand, getGroupCount, getIntLiteralOperand, getOperandLiteralValue, getOperandLiteralValue, getOperandLiteralValue, getOperandMonotonicity, getOperator, getPreOperandCount, getStringLiteralOperand, getTypeFactory, hasFilter, isOperandLiteral, isOperandTimeFrame, transform
- 
Constructor Details- 
ExplicitOperatorBinding
- 
ExplicitOperatorBindingpublic ExplicitOperatorBinding(RelDataTypeFactory typeFactory, SqlOperator operator, List<RelDataType> types) 
 
- 
- 
Method Details- 
getOperandCountpublic int getOperandCount()Description copied from class:SqlOperatorBindingReturns the number of bound operands. Includes pre-operands and regular operands.- Specified by:
- getOperandCountin class- SqlOperatorBinding
 
- 
getOperandTypeDescription copied from class:SqlOperatorBindingGets the type of a bound operand.- Specified by:
- getOperandTypein class- SqlOperatorBinding
- Parameters:
- ordinal- zero-based ordinal of operand of interest
- Returns:
- bound operand type
 
- 
newErrorpublic CalciteException newError(org.apache.calcite.runtime.Resources.ExInst<SqlValidatorException> e) Description copied from class:SqlOperatorBindingWraps a validation error with context appropriate to this operator call.- Specified by:
- newErrorin class- SqlOperatorBinding
- Parameters:
- e- Validation error, not null
- Returns:
- Error wrapped, if possible, with positional information
 
- 
isOperandNullpublic boolean isOperandNull(int ordinal, boolean allowCast) Description copied from class:SqlOperatorBindingDetermines whether a bound operand is NULL.This is only relevant for SQL validation. - Overrides:
- isOperandNullin class- SqlOperatorBinding
- Parameters:
- ordinal- zero-based ordinal of operand of interest
- allowCast- whether to regard CAST(constant) as a constant
- Returns:
- whether operand is null; false for everything except SQL validation
 
 
-