public class CountMinSketchAggState extends Object implements AggregationState
Modifier and Type | Field and Description |
---|---|
protected CountMinSketchState |
state |
Constructor and Description |
---|
CountMinSketchAggState(CountMinSketchState state,
CountMinSketchAgent agent) |
Modifier and Type | Method and Description |
---|---|
void |
add(Object value) |
void |
applyEnter(EventBean[] eventsPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Enter an event.
|
void |
applyLeave(EventBean[] eventsPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Remove an event.
|
void |
clear()
Clear all events in the group.
|
Long |
frequency(Object value) |
CountMinSketchTopK[] |
getFromBytes() |
protected final CountMinSketchState state
public CountMinSketchAggState(CountMinSketchState state, CountMinSketchAgent agent)
public void applyEnter(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
AggregationState
applyEnter
in interface AggregationState
eventsPerStream
- all events in all streams, typically implementations pick the relevant stream's events to addexprEvaluatorContext
- expression eval contextpublic void applyLeave(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
AggregationState
applyLeave
in interface AggregationState
eventsPerStream
- all events in all streams, typically implementations pick the relevant stream's events to removeexprEvaluatorContext
- expression eval contextpublic void add(Object value)
public void clear()
AggregationState
clear
in interface AggregationState
public CountMinSketchTopK[] getFromBytes()