Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package twitter
    Definition Classes
    com
  • package algebird
    Definition Classes
    twitter
  • package immutable
    Definition Classes
    algebird
  • final case class BloomFilter[A](numHashes: Int, width: Int)(implicit hash: Hash128[A]) extends Product with Serializable

    Bloom Filter - a probabilistic data structure to test presence of an element.

    Bloom Filter - a probabilistic data structure to test presence of an element.

    Operations 1) insert: hash the value k times, updating the bitfield at the index equal to each hashed value 2) query: hash the value k times. If there are k collisions, then return true; otherwise false.

    http://en.wikipedia.org/wiki/Bloom_filter

    Definition Classes
    immutable
  • Empty
  • Hash
  • Instance
  • Item

case class Instance(bits: BitSet) extends Hash with Product with Serializable

Linear Supertypes
Product, Equals, Hash, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Instance
  2. Product
  3. Equals
  4. Hash
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Instance(bits: BitSet)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(item: A): Hash
    Definition Classes
    InstanceHash
  4. def ++(other: Hash): Hash
    Definition Classes
    InstanceHash
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val bits: BitSet
  8. def checkAndAdd(other: A): (Hash, ApproximateBoolean)
    Definition Classes
    InstanceHash
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def contains(item: A): ApproximateBoolean
    Definition Classes
    Hash
  11. def density: Double

    Proportion of bits that are set to true.

    Proportion of bits that are set to true.

    Definition Classes
    Hash
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hammingDistance(that: Hash): Int

    Compute the Hamming distance between the two Bloom filters a and b.

    Compute the Hamming distance between the two Bloom filters a and b. The distance is defined as the number of bits that need to change to in order to transform one filter into the other.

    Definition Classes
    Hash
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def maybeContains(item: A): Boolean

    This may be faster if you don't care about evaluating the false positive probability

    This may be faster if you don't care about evaluating the false positive probability

    Definition Classes
    InstanceHash
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def numBits: Int

    The number of bits set to true

    The number of bits set to true

    Definition Classes
    InstanceHash
  22. def numHashes: Int
    Definition Classes
    Hash
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. def size: Approximate[Long]
    Definition Classes
    InstanceHash
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. val toBitSet: BitSet
    Definition Classes
    InstanceHash
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. def width: Int
    Definition Classes
    Hash
  31. def |(other: Hash): Hash
    Definition Classes
    Hash

Inherited from Product

Inherited from Equals

Inherited from Hash

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped