T
- public interface RBloomFilter<T> extends RExpirable
Modifier and Type | Method and Description |
---|---|
boolean |
add(T object) |
boolean |
contains(T object) |
int |
count()
Calculates probabilistic number of elements already added to Bloom filter.
|
long |
getExpectedInsertions() |
double |
getFalseProbability() |
int |
getHashIterations() |
long |
getSize() |
boolean |
tryInit(long expectedInsertions,
double falseProbability)
Initializes Bloom filter params (size and hashIterations)
calculated from
expectedInsertions and falseProbability
Stores config to Redis server. |
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getName, isExists, migrate, move, rename, renamenx
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
boolean add(T object)
boolean contains(T object)
boolean tryInit(long expectedInsertions, double falseProbability)
expectedInsertions
and falseProbability
Stores config to Redis server.expectedInsertions
- falseProbability
- true
if Bloom filter initialized
false
if Bloom filter already has been initializedlong getExpectedInsertions()
double getFalseProbability()
long getSize()
int getHashIterations()
int count()
Copyright © 2014–2016. All rights reserved.