net.sf.farrago.fennel.calc
Enum AggOp

java.lang.Object
  extended by java.lang.Enum<AggOp>
      extended by net.sf.farrago.fennel.calc.AggOp
All Implemented Interfaces:
Serializable, Comparable<AggOp>

public enum AggOp
extends Enum<AggOp>

Enumeration of aggregate operations to be performed on aggregation buckets for windowed or streaming aggregation.

Since:
Feb 5, 2004
Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/calc/AggOp.java#1 $
Author:
Jack Hahn

Enum Constant Summary
Add
          Update bucket in response to new row.
Drop
          Update bucket in response to row leaving window.
Init
          Initialize bucket to zero or null values
InitAdd
          Initialize bucket and update for new row.
None
           
 
Method Summary
static AggOp valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AggOp[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

None

public static final AggOp None

Init

public static final AggOp Init
Initialize bucket to zero or null values


Add

public static final AggOp Add
Update bucket in response to new row.


Drop

public static final AggOp Drop
Update bucket in response to row leaving window.


InitAdd

public static final AggOp InitAdd
Initialize bucket and update for new row.

Method Detail

values

public static final AggOp[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AggOp c : AggOp.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AggOp valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name