(deserialize-filter bytes params)
Deserialize the salt and the bit array. It returns [salts array].
Deserialize the salt and the bit array. It returns [salts array].
(make-filter
{:keys [hash-algo size num-hashes thread-safe?]
:or {hash-algo "SHA-256" size 1024 num-hashes 3 thread-safe? false}})
Makes a new bloom filter.
Makes a new bloom filter.
(restore-filter
salts
array
{:keys [hash-algo size num-hashes thread-safe?]
:or {hash-algo "SHA-256" size 1024 num-hashes 3 thread-safe? false}})
Restores the bloom filter from the salts and the bit-array.
Restores the bloom filter from the salts and the bit-array.
(serialize-filter bloom-filter)
Serialize the salts and the bit-array.
Serialize the salts and the bit-array.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close