|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.util.CountMinSketchAgentStringUTF16
public class CountMinSketchAgentStringUTF16
Count-min sketch agent that handles String-type values and uses UTF-16 encoding to transform strings to byte-array and back.
Constructor Summary | |
---|---|
CountMinSketchAgentStringUTF16()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountMinSketchAgentStringUTF16()
Method Detail |
---|
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 state
public java.lang.Object fromBytes(CountMinSketchAgentContextFromBytes ctx)
CountMinSketchAgent
fromBytes
in interface CountMinSketchAgent
ctx
- value object and state
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |