Package org.apache.pekko.util
Class FastFrequencySketch$
java.lang.Object
org.apache.pekko.util.FastFrequencySketch$
INTERNAL API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FastFrequencySketch$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> org.apache.pekko.util.FastFrequencySketch<A>apply(int capacity, int widthMultiplier, double resetMultiplier) Create a new FastFrequencySketch based on the cache capacity (which will be increased to the nearest power of two).<A> int<A> double
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
FastFrequencySketch$
public FastFrequencySketch$()
-
-
Method Details
-
apply
public <A> org.apache.pekko.util.FastFrequencySketch<A> apply(int capacity, int widthMultiplier, double resetMultiplier) Create a new FastFrequencySketch based on the cache capacity (which will be increased to the nearest power of two).- Parameters:
capacity- the cache capacity (maximum items that will be cached)widthMultiplier- a multiplier for the width of the sketchresetMultiplier- the multiplier on the capacity for the reset size- Returns:
- a configured FastFrequencySketch
-
apply$default$2
public <A> int apply$default$2() -
apply$default$3
public <A> double apply$default$3()
-