Click or drag to resize

CountMinSketchAgent Interface

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.

Namespace:  com.espertech.esper.common.client.util
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
public interface CountMinSketchAgent

The CountMinSketchAgent type exposes the following members.

Methods
  NameDescription
Public methodAdd
Add a value to the Count-min sketch. Implementations typically check for null value, convert the value object to a byte-array and invoke a method on the state object to add the byte-array value.
Public methodEstimate
Public methodFromBytes
Return the value object for a given byte-array, for use with top-K. Implementations typically simply convert a byte-array into a value object.
Top
See Also