net.esper.eql.agg
Class NumIntegerSumAggregator

java.lang.Object
  extended by net.esper.eql.agg.NumIntegerSumAggregator
All Implemented Interfaces:
AggregationMethod

public class NumIntegerSumAggregator
extends Object
implements AggregationMethod

Sum for any number value.


Constructor Summary
NumIntegerSumAggregator()
           
 
Method Summary
 void clear()
          Clear out the collection.
 void enter(Object object)
          Apply the value as entering aggregation (entering window).
 Object getValue()
          Returns the current value held.
 Class getValueType()
          Returns the type of the current value.
 void leave(Object object)
          Apply the value as leaving aggregation (leaving window).
 AggregationMethod newAggregator(MethodResolutionService methodResolutionService)
          Make a new, initalized aggregation state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumIntegerSumAggregator

public NumIntegerSumAggregator()
Method Detail

clear

public void clear()
Description copied from interface: AggregationMethod
Clear out the collection.

Specified by:
clear in interface AggregationMethod

enter

public void enter(Object object)
Description copied from interface: AggregationMethod
Apply the value as entering aggregation (entering window).

The value can be null since 'null' values may be counted as unique separate values.

Specified by:
enter in interface AggregationMethod
Parameters:
object - to add to aggregate

leave

public void leave(Object object)
Description copied from interface: AggregationMethod
Apply the value as leaving aggregation (leaving window).

The value can be null since 'null' values may be counted as unique separate values.

Specified by:
leave in interface AggregationMethod
Parameters:
object - to remove from aggregate

getValue

public Object getValue()
Description copied from interface: AggregationMethod
Returns the current value held.

Specified by:
getValue in interface AggregationMethod
Returns:
current value

getValueType

public Class getValueType()
Description copied from interface: AggregationMethod
Returns the type of the current value.

Specified by:
getValueType in interface AggregationMethod
Returns:
type of values held

newAggregator

public AggregationMethod newAggregator(MethodResolutionService methodResolutionService)
Description copied from interface: AggregationMethod
Make a new, initalized aggregation state.

Specified by:
newAggregator in interface AggregationMethod
Parameters:
methodResolutionService - for use in creating new aggregation method instances as a factory
Returns:
initialized copy of the aggregator

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com