public class CuckooFilter
extends org.redisson.RedissonObject
| 构造器和说明 |
|---|
CuckooFilter(org.redisson.client.codec.Codec codec,
org.redisson.command.CommandAsyncExecutor commandExecutor,
String name) |
CuckooFilter(org.redisson.command.CommandAsyncExecutor commandExecutor,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(String item)
Adds an item to the cuckoo filter
|
org.redisson.api.RFuture<Boolean> |
addAsync(String item) |
boolean |
addNx(String item)
Adds an item to a cuckoo filter if the item did not exist previously
|
org.redisson.api.RFuture<Boolean> |
addNxAsync(String item) |
int |
count(String item)
Get the number of times an item may be in the filter.
|
org.redisson.api.RFuture<Integer> |
countAsync(String item) |
Boolean |
delete(String item)
Deletes an item once from the filter.
|
org.redisson.api.RFuture<Boolean> |
deleteAsync(String item) |
boolean |
exists(String item)
Check if an item exists in a Cuckoo Filter
|
org.redisson.api.RFuture<Boolean> |
existsAsync(String item) |
CuckooFilterInfo |
getInfo()
Get information about key
|
org.redisson.api.RFuture<CuckooFilterInfo> |
getInfoAsync() |
List<Boolean> |
insert(long capacity,
boolean noCreate,
String... items)
Adds one or more items to a cuckoo filter
|
org.redisson.api.RFuture<List<Boolean>> |
insertAsync(long capacity,
boolean noCreate,
String... items) |
List<Boolean> |
insertNx(long capacity,
boolean noCreate,
String... items) |
org.redisson.api.RFuture<List<Boolean>> |
insertNxAsync(long capacity,
boolean noCreate,
String... items) |
boolean |
loadChunk(ChunksData chunk)
Restores a filter previously saved using SCANDUMP.
|
org.redisson.api.RFuture<Boolean> |
loadChunkAsync(ChunksData chunk) |
boolean |
reserve(long capacity)
Create an empty cuckoo filter with an initial capacity of {capacity} items
|
boolean |
reserve(long capacity,
long bucketSize) |
boolean |
reserve(long capacity,
long bucketSize,
long maxIterations,
long expansion) |
org.redisson.api.RFuture<Boolean> |
reserveAsync(long capacity,
long bucketSize,
long maxIterations,
long expansion) |
ChunksData |
scanDump(int iter)
Begins an incremental save of the cuckoo filter.
|
org.redisson.api.RFuture<ChunksData> |
scanDumpAsync(int iter) |
addListener, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncpublic CuckooFilter(org.redisson.client.codec.Codec codec,
org.redisson.command.CommandAsyncExecutor commandExecutor,
String name)
public CuckooFilter(org.redisson.command.CommandAsyncExecutor commandExecutor,
String name)
public boolean reserve(long capacity)
capacity - public boolean reserve(long capacity,
long bucketSize)
public boolean reserve(long capacity,
long bucketSize,
long maxIterations,
long expansion)
public org.redisson.api.RFuture<Boolean> reserveAsync(long capacity, long bucketSize, long maxIterations, long expansion)
public boolean add(String item)
item - public boolean addNx(String item)
item - public List<Boolean> insert(long capacity, boolean noCreate, String... items)
capacity - noCreate - items - public org.redisson.api.RFuture<List<Boolean>> insertAsync(long capacity, boolean noCreate, String... items)
public org.redisson.api.RFuture<List<Boolean>> insertNxAsync(long capacity, boolean noCreate, String... items)
public boolean exists(String item)
item - public int count(String item)
item - public CuckooFilterInfo getInfo()
public org.redisson.api.RFuture<CuckooFilterInfo> getInfoAsync()
public ChunksData scanDump(int iter)
iter - Iterator value. This is either 0, or the iterator from a previous invocation of this commandpublic org.redisson.api.RFuture<ChunksData> scanDumpAsync(int iter)
public boolean loadChunk(ChunksData chunk)
chunk - public org.redisson.api.RFuture<Boolean> loadChunkAsync(ChunksData chunk)
Copyright © 2022. All rights reserved.