Class/Object

peds.commons.collection

BloomFilter

Related Docs: object BloomFilter | package collection

Permalink

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

Linear Supertypes
LazyLogging, Serializable, Serializable, Equals, (T) ⇒ Boolean, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BloomFilter
  2. LazyLogging
  3. Serializable
  4. Serializable
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloomFilter(width: Int, numHashes: Int)(implicit manifest: Manifest[T])

    Permalink
  2. new BloomFilter(width: Int, numHashes: Int, hashable: Hashable)(implicit manifest: Manifest[T])

    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 +(value: T): BloomFilter[T]

    Permalink
  4. def ++(set: BloomFilter[T]): BloomFilter[T]

    Permalink

    Computes the union of two bloom filters and returns the result.

    Computes the union of two bloom filters and returns the result. Note that this operation is only defined for filters of the same width. Filters which have a different value of k (different number of hash functions) can be unioned, but the result will have a higher probability of false positives than either of the operands. The k value of the resulting filter is computed to be the minimum k of the two operands. The capacity of the resulting filter is precisely the combined capacity of the operands. This of course means that for sets with intersecting items the capacity will be slightly large.

  5. def ++(col: Traversable[T]): BloomFilter[T]

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

    Permalink
    Definition Classes
    AnyRef → Any
  7. lazy val accuracy: Double

    Permalink

    A value between 0 and 1 which estimates the accuracy of the bloom filter.

    A value between 0 and 1 which estimates the accuracy of the bloom filter. This estimate is precisely the inverse of the probability function for a bloom filter of a given capacity, width and number of hash functions. The probability function given by the following expression in LaTeX math syntax:

    (1 - e^{-kn/m})^k where k is the number of hash functions, n is the number of elements in the bloom filter and m is the width.

    It is important to remember that this is only an estimate of the accuracy. Likewise, it assumes perfectly ideal hash functions, thus it is somewhat more optimistic than the reality of the implementation.

  8. def add(buckets: BitSet)(value: T): BitSet

    Permalink
    Attributes
    protected
  9. def andThen[A](g: (Boolean) ⇒ A): (T) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. def apply(value: T): Boolean

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

    Permalink
    Definition Classes
    Any
  12. val buckets: BitSet

    Permalink
  13. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    BloomFilter → Equals
  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. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def has_?(value: T): Boolean

    Permalink
  21. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  23. val k: Int

    Permalink
  24. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  25. implicit val manifest: Manifest[T]

    Permalink
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. lazy val optimalK: Int

    Permalink

    Returns the optimal value of k for a bloom filter with the current properties (width and capacity).

    Returns the optimal value of k for a bloom filter with the current properties (width and capacity). Useful in reducing false-positives on sets with a limited range in capacity.

  30. val size: Int

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

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

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

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

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

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

    Permalink

Inherited from LazyLogging

Inherited from Serializable

Inherited from Serializable

Inherited from Equals

Inherited from (T) ⇒ Boolean

Inherited from AnyRef

Inherited from Any

Ungrouped