com.twitter.algebird

TopCMSItem

case class TopCMSItem[K](item: K, cms: CMS[K], params: TopCMSParams[K]) extends TopCMS[K] with Product with Serializable

Used for holding a single element, to avoid repeatedly adding elements from sparse counts tables.

Linear Supertypes
Serializable, Product, Equals, TopCMS[K], CMSHeavyHitters[K], CMSCounting[K, TopCMS], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TopCMSItem
  2. Serializable
  3. Product
  4. Equals
  5. TopCMS
  6. CMSHeavyHitters
  7. CMSCounting
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TopCMSItem(item: K, cms: CMS[K], params: TopCMSParams[K])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(x: K, count: Long): TopCMS[K]

    Counts the item count times and returns the result as a new sketch.

    Counts the item count times and returns the result as a new sketch.

    Definition Classes
    TopCMSItemCMSCounting
  5. def +(item: K): TopCMS[K]

    Counts the item and returns the result as a new sketch.

    Counts the item and returns the result as a new sketch.

    Definition Classes
    CMSCounting
  6. def ++(other: TopCMS[K]): TopCMS[K]

    Returns a new sketch that is the combination of this sketch and the other sketch.

    Returns a new sketch that is the combination of this sketch and the other sketch.

    Definition Classes
    TopCMSItemCMSCounting
  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val cms: CMS[K]

    Definition Classes
    TopCMSItemTopCMS
  12. val delta: Double

    Returns the bound on the probability that a query estimate does NOT lie within some small interval (an interval that depends on eps) around the truth.

    Returns the bound on the probability that a query estimate does NOT lie within some small interval (an interval that depends on eps) around the truth.

    Definition Classes
    TopCMSCMSCounting
  13. def depth: Int

    Number of hash functions (also: number of rows in the counting table).

    Number of hash functions (also: number of rows in the counting table). This number is derived from delta.

    Definition Classes
    CMSCounting
  14. val eps: Double

    Returns the one-sided error bound on the error of each point query, i.

    Returns the one-sided error bound on the error of each point query, i.e. frequency estimate.

    Definition Classes
    TopCMSCMSCounting
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def f1: Long

    The first frequency moment is the total number of elements in the stream.

    The first frequency moment is the total number of elements in the stream.

    Definition Classes
    CMSCounting
  17. def f2: Approximate[Long]

    The second frequency moment is \sum a_i^2, where a_i is the count of the i-th element.

    The second frequency moment is \sum a_i^2, where a_i is the count of the i-th element.

    Definition Classes
    TopCMSCMSCounting
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def frequency(item: K): Approximate[Long]

    Returns an estimate of the total number of times this item has been seen in the stream so far.

    Returns an estimate of the total number of times this item has been seen in the stream so far. This estimate is an upper bound.

    It is always true that estimatedFrequency >= trueFrequency. With probability p >= 1 - delta, it also holds that estimatedFrequency <= trueFrequency + eps * totalCount.

    Definition Classes
    TopCMSCMSCounting
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. val heavyHitters: Set[K]

    Returns the set of heavy hitters.

    Returns the set of heavy hitters.

    Definition Classes
    TopCMSItemCMSHeavyHitters
  22. def heavyHittersLogic: HeavyHittersLogic[K]

    The pluggable logic with which heavy hitters are being tracked.

    The pluggable logic with which heavy hitters are being tracked.

    Definition Classes
    TopCMSCMSHeavyHitters
  23. def innerProduct(other: TopCMS[K]): Approximate[Long]

    Returns an estimate of the inner product against another data stream.

    Returns an estimate of the inner product against another data stream.

    In other words, let a_i denote the number of times element i has been seen in the data stream summarized by this CMS, and let b_i denote the same for the other CMS. Then this returns an estimate of <a, b> = \sum a_i b_i.

    Note: This can also be viewed as the join size between two relations.

    It is always true that actualInnerProduct <= estimatedInnerProduct. With probability p >= 1 - delta, it also holds that estimatedInnerProduct <= actualInnerProduct + eps * thisTotalCount * otherTotalCount.

    Definition Classes
    TopCMSCMSCounting
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. val item: K

  26. def maxExactCount: Int

    Number of exact counts a sparse CMS wants to keep.

    Number of exact counts a sparse CMS wants to keep. This number is derived from maxExactCountOpt.

    Definition Classes
    CMSCounting
  27. val maxExactCountOpt: Option[Int]

    An Option parameter about how many exact counts a sparse CMS wants to keep

    An Option parameter about how many exact counts a sparse CMS wants to keep

    Definition Classes
    TopCMSCMSCounting
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. val params: TopCMSParams[K]

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. val totalCount: Long

    Total number of elements counted (i.

    Total number of elements counted (i.e. seen in the data stream) so far.

    Definition Classes
    TopCMSCMSCounting
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def width: Int

    Number of counters per hash function (also: number of columns in the counting table).

    Number of counters per hash function (also: number of columns in the counting table). This number is derived from eps.

    Definition Classes
    CMSCounting

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TopCMS[K]

Inherited from CMSHeavyHitters[K]

Inherited from CMSCounting[K, TopCMS]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped