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

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

public class AggregatorMinMaxEver
extends java.lang.Object
implements AggregationMethod

Min/max aggregator for all values, not considering events leaving the aggregation (i.e. ever).


Field Summary
protected  java.lang.Comparable currentMinMax
           
protected  MinMaxTypeEnum minMaxTypeEnum
           
protected  java.lang.Class returnType
           
 
Constructor Summary
AggregatorMinMaxEver(MinMaxTypeEnum minMaxTypeEnum, java.lang.Class returnType)
          Ctor.
 
Method Summary
 void clear()
          Clear out the collection.
 void enter(java.lang.Object object)
          Apply the value as entering aggregation (entering window).
 java.lang.Comparable getCurrentMinMax()
           
 java.lang.Object getValue()
          Returns the current value held.
 java.lang.Class getValueType()
          Returns the type of the current value.
 void leave(java.lang.Object object)
          Apply the value as leaving aggregation (leaving window).
 void setCurrentMinMax(java.lang.Comparable currentMinMax)
           
 
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

returnType

protected final java.lang.Class returnType

currentMinMax

protected java.lang.Comparable currentMinMax
Constructor Detail

AggregatorMinMaxEver

public AggregatorMinMaxEver(MinMaxTypeEnum minMaxTypeEnum,
                            java.lang.Class returnType)
Ctor.

Parameters:
minMaxTypeEnum - - enum indicating to return minimum or maximum values
returnType - - is the value type returned by aggregator
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

getValueType

public java.lang.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

setCurrentMinMax

public void setCurrentMinMax(java.lang.Comparable currentMinMax)

getCurrentMinMax

public java.lang.Comparable getCurrentMinMax()

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