eclipse-collections icon indicating copy to clipboard operation
eclipse-collections copied to clipboard

Introduce a Bloom Filter implementation

Open gastaldi opened this issue 4 years ago • 1 comments

A Bloom filter offers an approximate containment test with one-sided error: if it claims that an element is contained in it, this might be in error, but if it claims that an element is not contained in it, then this is definitely true.

This may be useful for scenarios where you have a cache map but don't want to store empty values.

Here is a tutorial explaining how it works: http://llimllib.github.io/bloomfilter-tutorial There is an implementation in Guava: https://github.com/google/guava/blob/master/guava/src/com/google/common/hash/BloomFilter.java

And here is a nice explanation on how it works: https://www.geeksforgeeks.org/bloom-filter-in-java-with-examples/

gastaldi avatar Jun 24 '21 16:06 gastaldi

If you decide to do something on this, ask me and I can dig up what our regrets are with Guava's. We can't change it now so.... :-)

kevinb9n avatar Feb 19 '22 18:02 kevinb9n