Class/Object

breeze.util

BloomFilter

Related Docs: object BloomFilter | package util

Permalink

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()
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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloomFilter(numBuckets: Int)

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

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

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

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

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

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

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

    Permalink
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def activeBuckets(key: T): IndexedSeq[Int]

    Permalink
  10. def andThen[A](g: (Boolean) ⇒ A): (T) ⇒ A

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

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

    Permalink
    Definition Classes
    Any
  13. val bits: BitSet

    Permalink
  14. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def load: Double

    Permalink

    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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. val numBuckets: Int

    Permalink
  28. val numHashFunctions: Int

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

    Permalink
    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

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

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

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from (T) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped