Class FastFrequencySketch$

java.lang.Object
org.apache.pekko.util.FastFrequencySketch$

public class FastFrequencySketch$ extends Object
INTERNAL API
  • Field Details

    • MODULE$

      public static final FastFrequencySketch$ 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 sketch
      resetMultiplier - 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()