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

java.lang.Object
  extended by com.espertech.esper.epl.agg.aggregator.AggregatorAvgBigDecimal
      extended by com.espertech.esper.epl.agg.aggregator.AggregatorAvgBigDecimalFilter
All Implemented Interfaces:
AggregationMethod

public class AggregatorAvgBigDecimalFilter
extends AggregatorAvgBigDecimal

Average that generates a BigDecimal numbers.


Field Summary
 
Fields inherited from class com.espertech.esper.epl.agg.aggregator.AggregatorAvgBigDecimal
numDataPoints, optionalMathContext, sum
 
Constructor Summary
AggregatorAvgBigDecimalFilter(java.math.MathContext optionalMathContext)
           
 
Method Summary
 void enter(java.lang.Object parameters)
          Apply the value as entering aggregation (entering window).
 void leave(java.lang.Object parameters)
          Apply the value as leaving aggregation (leaving window).
 
Methods inherited from class com.espertech.esper.epl.agg.aggregator.AggregatorAvgBigDecimal
clear, getValue, getValueType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatorAvgBigDecimalFilter

public AggregatorAvgBigDecimalFilter(java.math.MathContext optionalMathContext)
Method Detail

enter

public void enter(java.lang.Object parameters)
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
Overrides:
enter in class AggregatorAvgBigDecimal
Parameters:
parameters - to add to aggregate

leave

public void leave(java.lang.Object parameters)
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
Overrides:
leave in class AggregatorAvgBigDecimal
Parameters:
parameters - to remove from aggregate

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