public interface CountMinSketchAgent
Modifier and Type | Method and Description |
---|---|
void |
add(CountMinSketchAgentContextAdd ctx)
Add a value to the Count-min sketch.
|
Long |
estimate(CountMinSketchAgentContextEstimate ctx)
Return the estimated count for a given value.
|
Object |
fromBytes(CountMinSketchAgentContextFromBytes ctx)
Return the value object for a given byte-array, for use with top-K.
|
Class[] |
getAcceptableValueTypes()
Returns an array of types that the agent can handle, for validation purposes.
|
Class[] getAcceptableValueTypes()
void add(CountMinSketchAgentContextAdd ctx)
ctx
- contains value to add as well as the stateLong estimate(CountMinSketchAgentContextEstimate ctx)
ctx
- contains value to query as well as the stateObject fromBytes(CountMinSketchAgentContextFromBytes ctx)
ctx
- value object and state