com.twitter.algebird

BloomFilterMonoid

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

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

    Definition Classes
    Monoid
  8. def clone(): AnyRef

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

    Create a bloom filter with multiple items.

  10. def create(item: String): BF

    Create a bloom filter with one item.

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

    Definition Classes
    AnyRef
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. val hashes: BFHash

  15. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

    Definition Classes
    AnyRef
  21. val numHashes: Int

  22. 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
  23. val seed: Int

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

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

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

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

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

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

  31. 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