|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CountMinSketchAgent
For use with Count-min sketch aggregation functions: The agent implementation encapsulates transformation of value objects to byte-array and back (when needed), and may override or provide custom behavior.
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. |
Method Detail |
---|
java.lang.Class[] getAcceptableValueTypes()
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 state
java.lang.Object fromBytes(CountMinSketchAgentContextFromBytes ctx)
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 |