public class CountMinSketchAgentStringUTF16 extends 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.
|
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.
|
public void add(CountMinSketchAgentContextAdd ctx)
CountMinSketchAgent
add
in interface CountMinSketchAgent
ctx
- contains value to add as well as the statepublic Long estimate(CountMinSketchAgentContextEstimate ctx)
CountMinSketchAgent
estimate
in interface CountMinSketchAgent
ctx
- contains value to query as well as the statepublic Object fromBytes(CountMinSketchAgentContextFromBytes ctx)
CountMinSketchAgent
fromBytes
in interface CountMinSketchAgent
ctx
- value object and stateCopyright © 2005–2018. All rights reserved.