For legacy code (Algebird versions < 0.8.1) that uses CMS we provide this functionally equivalent CMS type, which
is a CMS with Long
-based keys.
For legacy code (Algebird versions < 0.8.1) that uses CMS we provide this functionally equivalent CMS type, which
is a CMS with Long
-based keys.
This type is an alias for TopCMS[Long]
(see TopCMS).
You typically create instances of this type via CountMinSketchMonoid.
(Since version 0.8.1) You should use TopCMS[Long] instead of legacy.CMS
For legacy code (Algebird versions < 0.8.1) that uses CMS we provide this functionally equivalent CMS monoid, which allows you to work with (e.g.
For legacy code (Algebird versions < 0.8.1) that uses CMS we provide this functionally equivalent CMS monoid, which
allows you to work with (e.g. create) top-% CMS instances with Long
-based keys.
You typically create instances of this type via CountMinSketchMonoid.apply()
, see example below.
import com.twitter.algebird.legacy.CountMinSketchMonoid // Pre-0.8.1 you would have used `new CountMinSketchMonoid(EPS, DELTA, SEED)` (note the `new`). val cmsMonoid: CountMinSketchMonoid = CountMinSketchMonoid(EPS, DELTA, SEED)
This type is an alias for TopPctCMSMonoid[Long]
(see TopPctCMSMonoid).
(Since version 0.8.1) You should use TopPctCMSMonoid[Long] instead of legacy.CountMinSketchMonoid
Creates instances of type CountMinSketchMonoid
(which is a type alias for the legacy class of the same name in
Algebird versions < 0.8.1).
Creates instances of type CountMinSketchMonoid
(which is a type alias for the legacy class of the same name in
Algebird versions < 0.8.1).
Only use this object when transitioning legacy code. Newer code should use TopPctCMS.monoid():
val cmsMonoid = TopPctCMS.monoid[Long](...)