public class TopKFilter
extends org.redisson.RedissonObject
| 构造器和说明 |
|---|
TopKFilter(org.redisson.client.codec.Codec codec,
org.redisson.command.CommandAsyncExecutor commandExecutor,
String name) |
TopKFilter(org.redisson.command.CommandAsyncExecutor commandExecutor,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
add(String... items)
Adds an item to the data structure
|
org.redisson.api.RFuture<List<String>> |
addAsync(String... items) |
List<Integer> |
count(String... items)
Returns count for an item
|
org.redisson.api.RFuture<List<Integer>> |
countAsync(String... items) |
TopKFilterInfo |
getInfo() |
org.redisson.api.RFuture<TopKFilterInfo> |
getInfoAsync() |
List<String> |
incrby(Map<String,Integer> itemIncrement)
Increase the score of an item in the data structure by increment
|
org.redisson.api.RFuture<List<String>> |
incrbyAsync(Map<String,Integer> itemIncrement) |
List<String> |
list()
Return full list of items in Top K list.
|
org.redisson.api.RFuture<List<String>> |
listAsync() |
List<Boolean> |
query(String... items)
Checks whether an item is one of Top-K items
|
org.redisson.api.RFuture<List<Boolean>> |
queryAsync(String... items) |
boolean |
reserve(int topk,
int width,
int depth,
double decay)
Initializes a TopK with specified parameters
|
org.redisson.api.RFuture<Boolean> |
reserveAsync(int topk,
int width,
int depth,
double decay) |
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 TopKFilter(org.redisson.command.CommandAsyncExecutor commandExecutor,
String name)
public TopKFilter(org.redisson.client.codec.Codec codec,
org.redisson.command.CommandAsyncExecutor commandExecutor,
String name)
public boolean reserve(int topk,
int width,
int depth,
double decay)
topk - Number of top occurring items to keepwidth - Number of counters kept in each arraydepth - Number of arraysdecay - The probability of reducing a counter in an occupied bucketpublic org.redisson.api.RFuture<Boolean> reserveAsync(int topk, int width, int depth, double decay)
public List<String> incrby(Map<String,Integer> itemIncrement)
itemIncrement - public org.redisson.api.RFuture<List<String>> incrbyAsync(Map<String,Integer> itemIncrement)
public List<Boolean> query(String... items)
items - public TopKFilterInfo getInfo()
public org.redisson.api.RFuture<TopKFilterInfo> getInfoAsync()
Copyright © 2022. All rights reserved.