Liking cljdoc? Tell your friends :D

blossom.core


deserialize-filterclj

(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].
sourceraw docstring

IBloomFiltercljprotocol

addclj

(add this item)

hit?clj

(hit? this item)
source

make-filterclj

(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.
sourceraw docstring

restore-filterclj

(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.
sourceraw docstring

serialize-filterclj

(serialize-filter bloom-filter)

Serialize the salts and the bit-array.

Serialize the salts and the bit-array.
sourceraw docstring

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

× close