public class AggregatorCountNonNull extends java.lang.Object implements AggregationMethod
Modifier and Type | Field and Description |
---|---|
protected long |
cnt |
Constructor and Description |
---|
AggregatorCountNonNull() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear out the collection.
|
void |
enter(java.lang.Object object)
Apply the value as entering aggregation (entering window).
|
java.lang.Object |
getValue()
Returns the current value held.
|
void |
leave(java.lang.Object object)
Apply the value as leaving aggregation (leaving window).
|
public void enter(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
enter
in interface AggregationMethod
object
- to add to aggregatepublic void leave(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
leave
in interface AggregationMethod
object
- to remove from aggregatepublic void clear()
AggregationMethod
clear
in interface AggregationMethod
public java.lang.Object getValue()
AggregationMethod
getValue
in interface AggregationMethod