public class BloomFilter extends Object
Modifier and Type | Method and Description |
---|---|
void |
add(byte[] key) |
void |
add(String key) |
static BloomFilter |
alwaysMatchingBloomFilter() |
void |
clear() |
static BloomFilter |
getFilter(long numElements,
double maxFalsePosProbability) |
static BloomFilter |
getFilter(long numElements,
int targetBucketsPerElem) |
int[] |
getHashBuckets(byte[] key) |
int[] |
getHashBuckets(String key) |
boolean |
isPresent(byte[] key) |
boolean |
isPresent(String key) |
String |
toString() |
public int[] getHashBuckets(String key)
public int[] getHashBuckets(byte[] key)
public static BloomFilter getFilter(long numElements, int targetBucketsPerElem)
public static BloomFilter getFilter(long numElements, double maxFalsePosProbability)
public void clear()
public boolean isPresent(String key)
public boolean isPresent(byte[] key)
public void add(String key)
public void add(byte[] key)
public static BloomFilter alwaysMatchingBloomFilter()
Copyright © GigaSpaces.