com.espertech.esper.epl.agg.aggregator
Class AggregatorMinMax

java.lang.Object
  extended by com.espertech.esper.epl.agg.aggregator.AggregatorMinMax
All Implemented Interfaces:
AggregationMethod
Direct Known Subclasses:
AggregatorMinMaxFilter

public class AggregatorMinMax
extends java.lang.Object
implements AggregationMethod

Min/max aggregator for all values.


Field Summary
protected  MinMaxTypeEnum minMaxTypeEnum
           
protected  SortedRefCountedSet<java.lang.Object> refSet
           
 
Constructor Summary
AggregatorMinMax(MinMaxTypeEnum minMaxTypeEnum)
          Ctor.
 
Method Summary
 void clear()
          Clear out the collection.
 void enter(java.lang.Object object)
          Apply the value as entering aggregation (entering window).
 SortedRefCountedSet<java.lang.Object> getRefSet()
           
 java.lang.Object getValue()
          Returns the current value held.
 void leave(java.lang.Object object)
          Apply the value as leaving aggregation (leaving window).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minMaxTypeEnum

protected final MinMaxTypeEnum minMaxTypeEnum

refSet

protected SortedRefCountedSet<java.lang.Object> refSet
Constructor Detail

AggregatorMinMax

public AggregatorMinMax(MinMaxTypeEnum minMaxTypeEnum)
Ctor.

Parameters:
minMaxTypeEnum - - enum indicating to return minimum or maximum values
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(java.lang.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(java.lang.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 java.lang.Object getValue()
Description copied from interface: AggregationMethod
Returns the current value held.

Specified by:
getValue in interface AggregationMethod
Returns:
current value

getRefSet

public SortedRefCountedSet<java.lang.Object> getRefSet()

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com