com.twitter.algebird

CMSItem

case class CMSItem(item: Long, params: CMSParams) extends CMS with Product with Serializable

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

Linear Supertypes
Serializable, Product, Equals, CMS, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CMSItem
  2. Serializable
  3. Product
  4. Equals
  5. CMS
  6. Serializable
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CMSItem(item: Long, params: CMSParams)

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 ++(other: CMS): CMS

    Definition Classes
    CMSItemCMS
  5. final def ==(arg0: AnyRef): Boolean

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

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

    Definition Classes
    Any
  8. def canEqual(arg0: Any): Boolean

    Definition Classes
    CMSItem → Equals
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. def delta: Double

    Definition Classes
    CMSItemCMS
  11. def depth: Int

    Definition Classes
    CMS
  12. def eps: Double

    Definition Classes
    CMSItemCMS
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    CMSItem → Equals → AnyRef → Any
  15. def f1: Long

    Definition Classes
    CMS
  16. def f2: Approximate[Long]

    Definition Classes
    CMS
  17. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def frequency(x: Long): 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 trueFrequency <= estimatedFrequency. With probability p >= 1 - delta, it also holds that estimatedFrequency <= trueFrequency + eps * totalCount.

    Definition Classes
    CMSItemCMS
  19. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    CMSItem → AnyRef → Any
  21. def heavyHitters: Set[Long]

    Definition Classes
    CMSItemCMS
  22. def heavyHittersPct: Double

    Finds all heavy hitters, i.

    Finds all heavy hitters, i.e., elements in the stream that appear at least (heavyHittersPct * totalCount) times.

    Every item that appears at least (heavyHittersPct * totalCount) times is output, and with probability p >= 1 - delta, no item whose count is less than (heavyHittersPct - eps) * totalCount is output.

    Note that the set of heavy hitters contains at most 1 / heavyHittersPct elements, so keeping track of all elements that appear more than (say) 1% of the time requires tracking at most 100 items.

    Definition Classes
    CMSItemCMS
  23. def innerProduct(other: CMS): 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
    CMSItemCMS
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. val item: Long

  26. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  29. val params: CMSParams

  30. def productArity: Int

    Definition Classes
    CMSItem → Product
  31. def productElement(arg0: Int): Any

    Definition Classes
    CMSItem → Product
  32. def productIterator: Iterator[Any]

    Definition Classes
    Product
  33. def productPrefix: String

    Definition Classes
    CMSItem → Product
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    CMSItem → AnyRef → Any
  36. def totalCount: Long

    Definition Classes
    CMSItemCMS
  37. final def wait(): Unit

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

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

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

    Definition Classes
    CMS

Deprecated Value Members

  1. def productElements: Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    (Since version 2.8.0) use productIterator instead

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CMS

Inherited from Serializable

Inherited from AnyRef

Inherited from Any