bits-and-blooms / bloom

Go package implementing Bloom filters, used by Milvus and Beego.
BSD 2-Clause "Simplified" License
2.44k stars 232 forks source link

Create from existing data slice #35

Closed db7 closed 7 years ago

db7 commented 7 years ago

This PR adds a method to create the bloom filter from an existing data slice. That is useful, for example, when the data slice is serialized as part of a protobuf message.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.3%) to 89.222% when pulling 89a6c3b660043c8fcf528c850653ba0fcd9b0f3d on db7:create-from into 278d7d8b14584245fe9f826a30e48d4301bd6fd9 on willf:master.