Class SketchFrequencies.Sketch<T>
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sketching.SketchFrequencies.Sketch<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SketchFrequencies
public abstract static class SketchFrequencies.Sketch<T> extends java.lang.Object implements java.io.SerializableWrap 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Sketch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T element, long count, org.apache.beam.sdk.coders.Coder<T> coder)voidadd(T element, org.apache.beam.sdk.coders.Coder<T> coder)longestimateCount(T element, org.apache.beam.sdk.coders.Coder<T> coder)Utility class to retrieve the estimate frequency of an element from aCountMinSketch.
-