T - - type of objectpublic interface RBloomFilter<T> extends RExpirable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T object) |
boolean |
contains(T object) |
long |
count()
Calculates probabilistic number of elements already added to Bloom filter.
|
long |
getExpectedInsertions() |
double |
getFalseProbability() |
int |
getHashIterations() |
long |
getSize()
Returns number of bits in Redis memory required by this instance
|
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, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncboolean add(T object)
boolean contains(T object)
boolean tryInit(long expectedInsertions,
double falseProbability)
expectedInsertions and falseProbability
Stores config to Redis server.expectedInsertions - - expected amount of insertionsfalseProbability - - expected false probabilitytrue if Bloom filter initialized
false if Bloom filter already has been initializedlong getExpectedInsertions()
double getFalseProbability()
long getSize()
int getHashIterations()
long count()
Copyright © 2014–2018 The Redisson Project. All rights reserved.