Liking cljdoc? Tell your friends :D

com.github.kyleburton.clj-bloom.io

IO Helpers for clj-bloom. Supports serialization and de-serialization of the state portion of a Bloom filter.

IO Helpers for clj-bloom.  Supports serialization and
de-serialization of the state portion of a Bloom filter.
raw docstring

file->filterclj

(file->filter fname)
(file->filter fname hash-fn)

Reads, deserializes, a filter stored in a file. NB: you must supply the filter's hash-fn.

Reads, deserializes, a filter stored in a file.  NB: you must supply the filter's hash-fn.
sourceraw docstring

filter->fileclj

(filter->file flt fname)

Store a filter's state in a file.

Store a filter's state in a file.
sourceraw docstring

filter->object-output-streamclj

(filter->object-output-stream flt oos)

Serializes a filter into an ObjectOutputStream. Writes the number of bits, the number of insertions and the bitset (the state of the filter). NB: this function does not serialize the hash-fn.

Serializes a filter into an ObjectOutputStream.  Writes the number
of bits, the number of insertions and the bitset (the state of the
filter).  NB: this function does not serialize the hash-fn.
sourceraw docstring

object-input-stream->filterclj

(object-input-stream->filter ois)
(object-input-stream->filter ois hash-fn)

Deserializes a filter from an ObjectInputStream. Reads the number of bits, the number of insertions and the bitset (the state of the filter).

Deserializes a filter from an ObjectInputStream.  Reads the number
of bits, the number of insertions and the bitset (the state of the
filter).
sourceraw docstring

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

× close