Class/Object

com.twitter.algebird

CMSInstance

Related Docs: object CMSInstance | package algebird

Permalink

case class CMSInstance[K](countsTable: CountsTable[K], totalCount: Long, params: CMSParams[K]) extends CMS[K] with Product with Serializable

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

Source
CountMinSketch.scala
Linear Supertypes
Serializable, Product, Equals, CMS[K], CMSCounting[K, CMS], Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CMSInstance
  2. Serializable
  3. Product
  4. Equals
  5. CMS
  6. CMSCounting
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CMSInstance(countsTable: CountsTable[K], totalCount: Long, params: CMSParams[K])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(item: K, count: Long): CMSInstance[K]

    Permalink

    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
    CMSInstanceCMSCounting
  4. def +(item: K): CMS[K]

    Permalink

    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
  5. def ++(other: CMS[K]): CMS[K]

    Permalink

    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
    CMSInstanceCMSCounting
  6. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val countsTable: CountsTable[K]

    Permalink
  10. val delta: Double

    Permalink

    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
    CMSCMSCounting
  11. def depth: Int

    Permalink

    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
  12. val eps: Double

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef
  14. def f1: Long

    Permalink

    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
  15. def f2: Approximate[Long]

    Permalink

    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
    CMSCMSCounting
  16. def finalize(): Unit

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

    Permalink

    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
    CMSInstanceCMSCounting
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def innerProduct(other: CMS[K]): Approximate[Long]

    Permalink

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

    Permalink
    Definition Classes
    Any
  21. def maxExactCount: Int

    Permalink

    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
  22. val maxExactCountOpt: Option[Int]

    Permalink

    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
    CMSCMSCounting
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val params: CMSParams[K]

    Permalink
    Definition Classes
    CMSInstanceCMS
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. val totalCount: Long

    Permalink

    Total number of elements counted (i.e.

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

    Definition Classes
    CMSInstanceCMSCounting
  29. final def wait(): Unit

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

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

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

    Permalink

    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 CMS[K]

Inherited from CMSCounting[K, CMS]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped