net.sf.farrago.fennel.rel
Class FennelWindowRel.RexWinAggCall

java.lang.Object
  extended by org.eigenbase.rex.RexNode
      extended by org.eigenbase.rex.RexCall
          extended by net.sf.farrago.fennel.rel.FennelWindowRel.RexWinAggCall
Enclosing class:
FennelWindowRel

public static class FennelWindowRel.RexWinAggCall
extends RexCall

A call to a windowed aggregate function.

Belongs to a FennelWindowRel.Partition.

It's a bastard son of a RexCall; similar enough that it gets visited by a RexVisitor, but it also has some extra data members.


Field Summary
 int ordinal
          Ordinal of this aggregate within its partition.
 
Fields inherited from class org.eigenbase.rex.RexCall
operands
 
Fields inherited from class org.eigenbase.rex.RexNode
digest, EMPTY_ARRAY
 
Constructor Summary
FennelWindowRel.RexWinAggCall(SqlAggFunction aggFun, RelDataType type, RexNode[] operands, int ordinal)
          Creates a RexWinAggCall.
 
Method Summary
 
Methods inherited from class org.eigenbase.rex.RexCall
accept, clone, clone, computeDigest, getKind, getOperands, getOperator, getType, toString
 
Methods inherited from class org.eigenbase.rex.RexNode
isA, isAlwaysTrue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ordinal

public final int ordinal
Ordinal of this aggregate within its partition.

Constructor Detail

FennelWindowRel.RexWinAggCall

public FennelWindowRel.RexWinAggCall(SqlAggFunction aggFun,
                                     RelDataType type,
                                     RexNode[] operands,
                                     int ordinal)
Creates a RexWinAggCall.

Parameters:
aggFun - Aggregate function
type - Result type
operands - Operands to call
ordinal - Ordinal within its partition