Creates a Builder
of a BloomFilter[T]
, with the expected number
of insertions, and a default expected false positive probability of 3%.
Creates a Builder
of a BloomFilter[T]
, with the expected number
of insertions, and a default expected false positive probability of 3%.
Note that overflowing a BloomFilter
with significantly more elements
than specified, will result in its saturation, and a sharp deterioration of its
false positive probability.
The constructed BloomFilter[T]
will be serializable if the provided
Funnel[T]
is.
the number of expected insertions to the constructed
BloomFilter
; must be positive
the funnel of T's that the constructed BloomFilter[T]
will use
a BloomFilter
Creates a Builder
of a BloomFilter[T]
, with the expected number
of insertions and expected false positive probability.
Creates a Builder
of a BloomFilter[T]
, with the expected number
of insertions and expected false positive probability.
Note that overflowing a BloomFilter
with significantly more elements
than specified, will result in its saturation, and a sharp deterioration of its
false positive probability.
The constructed BloomFilter[T]
will be serializable if the provided
Funnel[T]
is.
the number of expected insertions to the constructed
BloomFilter[T]
; must be positive
the desired false positive probability (must be positive and less than 1.0)
the funnel of T's that the constructed BloomFilter[T]
will use
a BloomFilter
Factory for BloomFilters
In order to be able to create a
BloomFilter[T]
an implementation of a Funnel forT
(called type class) must be in implicit scope (recommended) or passed explicitly as a parameter.