public class CountMinSketchAgentStringUTF16 extends java.lang.Object implements CountMinSketchAgent
Constructor and Description |
---|
CountMinSketchAgentStringUTF16() |
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.
|
java.lang.Class[] |
getAcceptableValueTypes()
Returns an array of types that the agent can handle, for validation purposes.
|
public java.lang.Class[] getAcceptableValueTypes()
CountMinSketchAgent
getAcceptableValueTypes
in interface CountMinSketchAgent
public void add(CountMinSketchAgentContextAdd ctx)
CountMinSketchAgent
add
in interface CountMinSketchAgent
ctx
- contains value to add as well as the statepublic java.lang.Long estimate(CountMinSketchAgentContextEstimate ctx)
CountMinSketchAgent
estimate
in interface CountMinSketchAgent
ctx
- contains value to query as well as the statepublic java.lang.Object fromBytes(CountMinSketchAgentContextFromBytes ctx)
CountMinSketchAgent
fromBytes
in interface CountMinSketchAgent
ctx
- value object and state