Class/Object

com.twitter.algebird

BFInstance

Related Docs: object BFInstance | package algebird

Permalink

case class BFInstance(hashes: BFHash, bits: BitSet, width: Int) extends BF with Product with Serializable

Source
BloomFilter.scala
Linear Supertypes
Serializable, Product, Equals, BF, Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BFInstance
  2. Serializable
  3. Product
  4. Equals
  5. BF
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BFInstance(hashes: BFHash, bits: BitSet, width: Int)

    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: String): BFInstance

    Permalink
    Definition Classes
    BFInstanceBF
  4. def ++(other: BF): BF

    Permalink
    Definition Classes
    BFInstanceBF
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. val bits: BitSet

    Permalink
  8. def checkAndAdd(item: String): (BF, ApproximateBoolean)

    Permalink
    Definition Classes
    BFInstanceBF
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contains(item: String): ApproximateBoolean

    Permalink
    Definition Classes
    BFInstanceBF
  11. def density: Double

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. val hashes: BFHash

    Permalink
  16. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. lazy val numBits: Int

    Permalink
  21. lazy val numHashes: Int

    Permalink
    Definition Classes
    BFInstanceBF
  22. def size(approximationWidth: Double = 0.05): Approximate[Long]

    Permalink
  23. lazy val size: Approximate[Long]

    Permalink

    Cardinality estimates are taken from Theorem 1 on page 15 of "Cardinality estimation and dynamic length adaptation for Bloom filters" by Papapetrou, Siberski, and Nejdl: http://www.softnet.tuc.gr/~papapetrou/publications/Bloomfilters-DAPD.pdf

    Cardinality estimates are taken from Theorem 1 on page 15 of "Cardinality estimation and dynamic length adaptation for Bloom filters" by Papapetrou, Siberski, and Nejdl: http://www.softnet.tuc.gr/~papapetrou/publications/Bloomfilters-DAPD.pdf

    Roughly, by using bounds on the expected number of true bits after n elements have been inserted into the Bloom filter, we can go from the actual number of true bits (which is known) to an estimate of the cardinality.

    approximationWidth defines an interval around the maximum-likelihood cardinality estimate. Namely, the approximation returned is of the form (min, estimate, max) = ((1 - approxWidth) * estimate, estimate, (1 + approxWidth) * estimate)

    Definition Classes
    BFInstanceBF
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. val width: Int

    Permalink
    Definition Classes
    BFInstanceBF

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from BF

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped