public class AggregatorNthFilter extends AggregatorNth
circularBuffer, currentBufferElementPointer, numDataPoints, sizeBuf
Constructor and Description |
---|
AggregatorNthFilter(int sizeBuf) |
Modifier and Type | Method and Description |
---|---|
void |
enter(Object value)
Apply the value as entering aggregation (entering window).
|
void |
leave(Object value)
Apply the value as leaving aggregation (leaving window).
|
clear, enterValues, getCircularBuffer, getCurrentBufferElementPointer, getNumDataPoints, getSizeBuf, getValue, setCircularBuffer, setCurrentBufferElementPointer, setNumDataPoints
public void enter(Object value)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
enter
in interface AggregationMethod
enter
in class AggregatorNth
value
- to add to aggregatepublic void leave(Object value)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
leave
in interface AggregationMethod
leave
in class AggregatorNth
value
- to remove from aggregate