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. CMSInstance
  2. Serializable
  3. Product
  4. Equals
  5. CMS
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
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 clone(): AnyRef

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

  12. def delta: Double

    Definition Classes
    CMSInstanceCMS
  13. def depth: Int

    Definition Classes
    CMS
  14. def eps: Double

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

    Definition Classes
    AnyRef
  16. def f1: Long

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

    Definition Classes
    CMS
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. 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
  20. final def getClass(): Class[_]

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

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

  24. 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
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. val totalCount: Long

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

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

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

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

    Definition Classes
    CMS

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from CMS

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped