Package org.infinispan.commons.util
Class MurmurHash3BloomFilter
- java.lang.Object
-
- org.infinispan.commons.util.BloomFilter<byte[]>
-
- org.infinispan.commons.util.MurmurHash3BloomFilter
-
public class MurmurHash3BloomFilter extends BloomFilter<byte[]>
BloomFilter implementation that allows for up to 10 hash functions all using MurmurHash3 with different seeds. The same seed(s) is used for the given number of hash functions. That is if you create this filter in one JVM with 3 functions it will be the same bloom filter as another JVM with 3 functions in another.The default number of hash functions is 3.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BloomFilter<byte[]>
createConcurrentFilter(int bitsToUse)
static BloomFilter<byte[]>
createConcurrentFilter(int bitsToUse, int hashFunctions)
static BloomFilter<byte[]>
createFilter(int bitsToUse)
static BloomFilter<byte[]>
createFilter(int bitsToUse, int hashFunctions)
-
Methods inherited from class org.infinispan.commons.util.BloomFilter
addToFilter, createConcurrentFilter, createFilter, getIntSet, possiblyPresent, setBits, toString
-
-
-
-
Method Detail
-
createFilter
public static BloomFilter<byte[]> createFilter(int bitsToUse)
-
createFilter
public static BloomFilter<byte[]> createFilter(int bitsToUse, int hashFunctions)
-
createConcurrentFilter
public static BloomFilter<byte[]> createConcurrentFilter(int bitsToUse)
-
createConcurrentFilter
public static BloomFilter<byte[]> createConcurrentFilter(int bitsToUse, int hashFunctions)
-
-