Data structure representing an approximation of Map[K, V], where V has an
implicit ordering and monoid. This is a more generic version of
CountMinSketch.
Values are stored in valuesTable, a 2D vector containing aggregated sums of
values inserted to the Sketch Map.
The data structure stores top non-zero values, called Heavy Hitters. The
values are sorted by an implicit reverse ordering for the value, and the
number of heavy hitters stored is based on the heavyHittersCount set in
params.
Use SketchMapMonoid to create instances of this class.
Generates a monoid used to create SketchMap instances.
Generates a monoid used to create SketchMap instances. Requires a
serialization from K to Array[Byte] for hashing, an ordering for V, and a
monoid for V.
Data structure representing an approximation of Map[K, V], where V has an implicit ordering and monoid. This is a more generic version of CountMinSketch.
Values are stored in valuesTable, a 2D vector containing aggregated sums of values inserted to the Sketch Map.
The data structure stores top non-zero values, called Heavy Hitters. The values are sorted by an implicit reverse ordering for the value, and the number of heavy hitters stored is based on the heavyHittersCount set in params.
Use SketchMapMonoid to create instances of this class.