org.eigenbase.rel
Class AggregateRelBase.AggCallBinding
java.lang.Object
org.eigenbase.sql.SqlOperatorBinding
org.eigenbase.rel.AggregateRelBase.AggCallBinding
- Enclosing class:
- AggregateRelBase
public static class AggregateRelBase.AggCallBinding
- extends SqlOperatorBinding
Implementation of the SqlOperatorBinding interface for an aggregate call applied to a set of operands in the context
of a AggregateRel.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aggregateRel
private final AggregateRelBase aggregateRel
operands
private final List<Integer> operands
AggregateRelBase.AggCallBinding
AggregateRelBase.AggCallBinding(RelDataTypeFactory typeFactory,
SqlAggFunction aggFunction,
AggregateRelBase aggregateRel,
List<Integer> operands)
- Creates an AggCallBinding
- Parameters:
typeFactory - Type factoryaggFunction - Aggregation functionaggregateRel - Relational expression which is contextoperands - Operand ordinals
getOperandCount
public int getOperandCount()
- Specified by:
getOperandCount in class SqlOperatorBinding
- Returns:
- the number of bound operands
getOperandType
public RelDataType getOperandType(int ordinal)
- Description copied from class:
SqlOperatorBinding
- Gets the type of a bound operand.
- Specified by:
getOperandType in class SqlOperatorBinding
- Parameters:
ordinal - zero-based ordinal of operand of interest
- Returns:
- bound operand type
newError
public EigenbaseException newError(SqlValidatorException e)
- Description copied from class:
SqlOperatorBinding
- Wraps a validation error with context appropriate to this operator call.
- Specified by:
newError in class SqlOperatorBinding
- Parameters:
e - Validation error
- Returns:
- Error wrapped, if possible, with positional information