Class SketchFrequencies.Sketch<T>
java.lang.Object
org.apache.beam.sdk.extensions.sketching.SketchFrequencies.Sketch<T>
- All Implemented Interfaces:
Serializable
- Enclosing class:
SketchFrequencies
Wrap StreamLib's Count-Min Sketch to support counting all user types by hashing the encoded
user type using the supplied deterministic coder. This is required since objects in Apache Beam
are considered equal if their encodings are equal.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sketch
public Sketch()
-
-
Method Details
-
add
-
add
-
estimateCount
Utility class to retrieve the estimate frequency of an element from aCountMinSketch
.
-