Object/Class

peds.commons.collection

BloomFilter

Related Docs: class BloomFilter | package collection

Permalink

object BloomFilter extends LazyLogging with Serializable

Linear Supertypes
Serializable, Serializable, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BloomFilter
  2. Serializable
  3. Serializable
  4. LazyLogging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class BloomSpecification(numHashes: Int, bucketsPerElement: Double) extends Product with Serializable

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. object BloomSpecification extends Serializable

    Permalink
  5. def apply[T](size: Int, targetBucketsPerElem: Double, hashable: Hashable)(implicit manifest: Manifest[T]): BloomFilter[T]

    Permalink
  6. def apply[T](size: Int, bucketsPerElement: Double, numHashes: Int)(implicit manifest: Manifest[T]): BloomFilter[T]

    Permalink
  7. def apply[T](maxFalsePosProbability: Double, size: Int)(implicit manifest: Manifest[T]): BloomFilter[T]

    Permalink

    returns

    The smallest BloomFilter that can provide the given false positive probability rate for the given number of elements. Asserts that the given probability can be satisfied using this filter.

  8. def apply[T]()(implicit manifest: Manifest[T]): BloomFilter[T]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def calculateAccuracy(numHashes: Int, bucketsPerElement: Double): Double

    Permalink
  11. def calculateAccuracy(numHashes: Int, expectedSize: Int, width: Int): 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.

  12. def calculateOptimalK(bucketsPerElement: Double): Int

    Permalink
  13. def calculateOptimalK(expectedSize: Int, width: Int): 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.

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

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

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

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

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

    Permalink
    Definition Classes
    Any
  21. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  22. def maxBucketsPerElement(numElements: Long): Int

    Permalink

    Calculates the maximum number of buckets per element that this implementation can support.

    Calculates the maximum number of buckets per element that this implementation can support. Crucially, it will lower the bucket count if necessary to meet BitSet's size restrictions.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped