breeze.util

BloomFilter

class BloomFilter[T] extends (T) ⇒ Boolean with Serializable

A BloomFilter is an approximate set that sometimes gives false positives. That is, if bf(x) returns true, then it might have been added to the set. If it returns false, then it definitely has not. This is useful for caching and approximation.

Annotations
@SerialVersionUID( 1L )
Linear Supertypes
Serializable, Serializable, (T) ⇒ Boolean, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BloomFilter
  2. Serializable
  3. Serializable
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloomFilter(numBuckets: Int)

  2. new BloomFilter(numBuckets: Int, numHashFunctions: Int)

  3. new BloomFilter(numBuckets: Int, numHashFunctions: Int, bits: BitSet)

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. def &(that: BloomFilter[T]): BloomFilter[T]

  5. def &=(that: BloomFilter[T]): BloomFilter.this.type

  6. def &~(that: BloomFilter[T]): BloomFilter[T]

  7. def &~=(that: BloomFilter[T]): BloomFilter.this.type

  8. def +=(o: T): BloomFilter.this.type

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

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

    Definition Classes
    Any
  11. def andThen[A](g: (Boolean) ⇒ A): (T) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def apply(o: T): Boolean

    Definition Classes
    BloomFilter → Function1
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. val bits: BitSet

  15. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def compose[A](g: (A) ⇒ T): (A) ⇒ Boolean

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  17. def contains(o: T): Boolean

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

    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean

    Definition Classes
    BloomFilter → AnyRef → Any
  20. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    BloomFilter → AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def load: Double

    Calculates the load of the bloom filter.

    Calculates the load of the bloom filter. If this is near 1, there will be lots of false positives.

    returns

    the fraction of bits that are set

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. val numBuckets: Int

  29. val numHashFunctions: Int

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def |(that: BloomFilter[T]): BloomFilter[T]

  36. def |=(that: BloomFilter[T]): BloomFilter.this.type

Inherited from Serializable

Inherited from Serializable

Inherited from (T) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped