com.twitter.algebird

CMSInstance

case class CMSInstance(countsTable: CMSCountsTable, totalCount: Long, hhs: HeavyHitters, params: CMSParams) extends CMS with Product with Serializable

The general Count-Min sketch structure, used for holding any number of elements.

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

Instance Constructors

  1. new CMSInstance(countsTable: CMSCountsTable, totalCount: Long, hhs: HeavyHitters, 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 +(item: Long, count: Long): CMSInstance

  5. def +(item: Long): CMSInstance

    Updates the sketch with a new element from the data stream.

  6. def ++(other: CMS): CMS

    Definition Classes
    CMSInstanceCMS
  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 canEqual(arg0: Any): Boolean

    Definition Classes
    CMSInstance → Equals
  11. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. val countsTable: CMSCountsTable

  13. def delta: Double

    Definition Classes
    CMSInstanceCMS
  14. def depth: Int

    Definition Classes
    CMS
  15. def eps: Double

    Definition Classes
    CMSInstanceCMS
  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    CMSInstance → Equals → AnyRef → Any
  18. def f1: Long

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

    Definition Classes
    CMS
  20. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def frequency(item: 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
    CMSInstanceCMS
  22. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    CMSInstance → AnyRef → Any
  24. def heavyHitters: Set[Long]

    Definition Classes
    CMSInstanceCMS
  25. 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
    CMSInstanceCMS
  26. val hhs: HeavyHitters

  27. def innerProduct(other: CMS): Approximate[Long]

    Let X be a CMS, and let count_X[j, k] denote the value in X's 2-dimensional count table at row j and column k.

    Let X be a CMS, and let count_X[j, k] denote the value in X's 2-dimensional count table at row j and column k. Then the Count-Min sketch estimate of the inner product between A and B is the minimum inner product between their rows: estimatedInnerProduct = min_j (\sum_k count_A[j, k] * count_B[j, k])

    Definition Classes
    CMSInstanceCMS
  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  32. val params: CMSParams

  33. def productArity: Int

    Definition Classes
    CMSInstance → Product
  34. def productElement(arg0: Int): Any

    Definition Classes
    CMSInstance → Product
  35. def productIterator: Iterator[Any]

    Definition Classes
    Product
  36. def productPrefix: String

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

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    CMSInstance → AnyRef → Any
  39. val totalCount: Long

    Definition Classes
    CMSInstanceCMS
  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  43. 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