Interface TopKFilterCommands
- All Known Subinterfaces:
RedisBloomCommands,RedisModuleCommands
- All Known Implementing Classes:
JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
public interface TopKFilterCommands
-
Method Summary
Modifier and TypeMethodDescriptionTOPK.ADD {key} {item ...}Deprecated.As of RedisBloom 2.4, this command is regarded as deprecated.default StringtopkIncrBy(String key, String item, long increment) TOPK.INCRBY {key} {item} {increment}topkIncrBy(String key, Map<String, Long> itemIncrements) TOPK.INCRBY {key} {item} {increment} [{item} {increment} ...]TOPK.INFO {key}TOPK.LIST {key}topkListWithCount(String key) TOPK.LIST {key} WITHCOUNTTOPK.QUERY {key} {item ...}topkReserve(String key, long topk) TOPK.RESERVE {key} {topk}topkReserve(String key, long topk, long width, long depth, double decay) TOPK.RESERVE {key} {topk} [{width} {depth} {decay}]
-
Method Details
-
topkReserve
TOPK.RESERVE {key} {topk}- Parameters:
key-topk-- Returns:
- OK
-
topkReserve
TOPK.RESERVE {key} {topk} [{width} {depth} {decay}]- Parameters:
key-topk-width-depth-decay-- Returns:
- OK
-
topkAdd
TOPK.ADD {key} {item ...}- Parameters:
key-items-- Returns:
- items dropped from list
-
topkIncrBy
TOPK.INCRBY {key} {item} {increment}- Parameters:
key-item-increment-- Returns:
- item dropped from list
-
topkIncrBy
TOPK.INCRBY {key} {item} {increment} [{item} {increment} ...]- Parameters:
key-itemIncrements- item and increment pairs- Returns:
- item dropped from list
-
topkQuery
TOPK.QUERY {key} {item ...}- Parameters:
key-items-- Returns:
- if item is in Top-K
-
topkCount
Deprecated.As of RedisBloom 2.4, this command is regarded as deprecated.TOPK.COUNT {key} {item ...}- Parameters:
key-items-- Returns:
- count for item
-
topkList
TOPK.LIST {key}- Parameters:
key-- Returns:
- k (or less) items in Top K list
-
topkListWithCount
TOPK.LIST {key} WITHCOUNT- Parameters:
key-- Returns:
- k (or less) items in Top K list
-
topkInfo
TOPK.INFO {key}- Parameters:
key-- Returns:
- information
-