com.twitter.algebird

BloomFilterMonoid

Related Doc: package algebird

case class BloomFilterMonoid(numHashes: Int, width: Int, seed: Int) extends Monoid[BF] with Product with Serializable

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

Linear Supertypes
Serializable, Product, Equals, Monoid[BF], Semigroup[BF], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BloomFilterMonoid
  2. Serializable
  3. Product
  4. Equals
  5. Monoid
  6. Semigroup
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloomFilterMonoid(numHashes: Int, width: Int, seed: Int)

Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  5. def assertNotZero(v: BF): Unit

    Definition Classes
    Monoid
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def create(data: String*): BF

    Create a bloom filter with multiple items.

  8. def create(item: String): BF

    Create a bloom filter with one item.

  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. val hashes: BFHash

  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def isNonZero(v: BF): Boolean

    Definition Classes
    Monoid
  15. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def nonZeroOption(v: BF): Option[BF]

    Definition Classes
    Monoid
  17. final def notify(): Unit

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

    Definition Classes
    AnyRef
  19. val numHashes: Int

  20. def plus(left: BF, right: BF): BF

    Assume the bloom filters are compatible (same width and same hashing functions).

    Assume the bloom filters are compatible (same width and same hashing functions). This is the union of the 2 bloom filters.

    Definition Classes
    BloomFilterMonoidSemigroup
  21. val seed: Int

  22. def sum(vs: TraversableOnce[BF]): BF

    Definition Classes
    Monoid
  23. def sumOption(iter: TraversableOnce[BF]): Option[BF]

    override this if there is a faster way to do this sum than reduceLeftOption on plus

    override this if there is a faster way to do this sum than reduceLeftOption on plus

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

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

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

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

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

  29. val zero: BF

    Definition Classes
    BloomFilterMonoidMonoid

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Monoid[BF]

Inherited from Semigroup[BF]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped