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

java.lang.Object
  extended by net.sf.farrago.fennel.rel.FennelWindowRel.Partition
Enclosing class:
FennelWindowRel

public static class FennelWindowRel.Partition
extends Object

A Partition is a collection of windowed aggregate expressions which belong to the same FennelWindowRel.Window and have the same partitioning keys.


Field Summary
(package private)  List<FennelWindowRel.RexWinAggCall> overList
          Array of FennelWindowRel.RexWinAggCall objects, each of which is a call to a SqlAggFunction.
(package private)  Integer[] partitionKeys
          The ordinals of the input columns which uniquely identify rows in this partition.
 
Constructor Summary
FennelWindowRel.Partition(Integer[] partitionKeys)
           
 
Method Summary
 FennelWindowRel.RexWinAggCall addOver(RelDataType type, SqlAggFunction operator, RexNode[] operands, RexProgramBuilder programBuilder)
           
private  void computeDigest(StringBuilder buf)
           
 boolean equals(Object obj)
           
 List<FennelWindowRel.RexWinAggCall> getOvers()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

overList

final List<FennelWindowRel.RexWinAggCall> overList
Array of FennelWindowRel.RexWinAggCall objects, each of which is a call to a SqlAggFunction.


partitionKeys

final Integer[] partitionKeys
The ordinals of the input columns which uniquely identify rows in this partition. May be empty. Must not be null.

Constructor Detail

FennelWindowRel.Partition

FennelWindowRel.Partition(Integer[] partitionKeys)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

computeDigest

private void computeDigest(StringBuilder buf)

addOver

public FennelWindowRel.RexWinAggCall addOver(RelDataType type,
                                             SqlAggFunction operator,
                                             RexNode[] operands,
                                             RexProgramBuilder programBuilder)

getOvers

public List<FennelWindowRel.RexWinAggCall> getOvers()