Liking cljdoc? Tell your friends :D

merkle-db.bloom

Bloom filters provide a probablistic way to test for membership in a set using a fixed amount of space. This is useful for reducing work when the test definitively rules out the existence of a record.

Bloom filters provide a probablistic way to test for membership in a set
using a fixed amount of space. This is useful for reducing work when the test
definitively rules out the existence of a record.
raw docstring

contains?clj

(contains? bf x)

True if the filter probably contains the given value.

True if the filter probably contains the given value.
raw docstring

createclj

(create expected-size)
(create expected-size error-rate)

Constructs a new bloom filter with the given expected population size and desired error (false positive) rate.

Constructs a new bloom filter with the given expected population size and
desired error (false positive) rate.
raw docstring

filter->formclj

(filter->form bf)

Build a serializable form for the bloom filter.

Build a serializable form for the bloom filter.
raw docstring

filter?clj

(filter? x)

Predicate which tests whether the value is a BloomFilter.

Predicate which tests whether the value is a BloomFilter.
raw docstring

form->filterclj

(form->filter form)

Build a bloom filter from a serialized form.

Build a bloom filter from a serialized form.
raw docstring

insertclj

(insert bf & xs)

Insert the given elements into a bloom filter. Returns the updated filter.

Insert the given elements into a bloom filter. Returns the updated filter.
raw docstring

intoclj

(into bf coll)

Insert the collection of elements into a bloom filter. Returns the updated filter.

Insert the collection of elements into a bloom filter. Returns the updated
filter.
raw docstring

mergeclj

(merge a b)

Merge the bloom filters together. Only works if bits and k match.

Merge the bloom filters together. Only works if `bits` and `k` match.
raw docstring

mergeable?clj

(mergeable? a b)

Returns true if the two bloom filters can be merged together.

Returns true if the two bloom filters can be merged together.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close