public interface CountMinSketchAgent
Modifier and Type | Method and Description |
---|---|
void |
add(CountMinSketchAgentContextAdd ctx)
Add a value to the Count-min sketch.
|
java.lang.Long |
estimate(CountMinSketchAgentContextEstimate ctx)
Return the estimated count for a given value.
|
java.lang.Object |
fromBytes(CountMinSketchAgentContextFromBytes ctx)
Return the value object for a given byte-array, for use with top-K.
|
void add(CountMinSketchAgentContextAdd ctx)
ctx
- contains value to add as well as the statejava.lang.Long estimate(CountMinSketchAgentContextEstimate ctx)
ctx
- contains value to query as well as the statejava.lang.Object fromBytes(CountMinSketchAgentContextFromBytes ctx)
ctx
- value object and state