T
- public class CBloomFilterRedisBits<T> extends CBloomFilter<T>
CBloomFilter.OverflowHandler
BloomFilter.CustomHashFunction, BloomFilter.HashMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SETANDDECR |
static java.lang.String |
SETANDINCR |
Constructor and Description |
---|
CBloomFilterRedisBits(java.lang.String host,
int port,
double n,
double p,
int c) |
CBloomFilterRedisBits(java.lang.String host,
int port,
int m,
int k,
int c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(byte[] value) |
boolean |
contains(byte[] value) |
void |
remove(byte[] value)
Removes the object from the counting bloom filter.
|
clear, clone, equals, getC, hashCode, intersect, remove, removeAll, setOverflowHandler, toString, union
add, addAll, contains, containsAll, getBitSet, getBitsPerElement, getBitZeroProbability, getCryptographicHashFunctionName, getFalsePositiveProbability, getHashMethod, getK, getM, hash, isEmpty, optimalK, optimalM, setCryptographicHashFunction, setCusomtHashFunction, setHashMethod, size
public static final java.lang.String SETANDINCR
public static final java.lang.String SETANDDECR
public CBloomFilterRedisBits(java.lang.String host, int port, double n, double p, int c)
public CBloomFilterRedisBits(java.lang.String host, int port, int m, int k, int c)
public void remove(byte[] value)
CBloomFilter
remove
in class CBloomFilter<T>
value
- object to be deletedpublic boolean add(byte[] value)
add
in class CBloomFilter<T>
public boolean contains(byte[] value)
contains
in class BloomFilter<T>