Interface TopKFilterCommands

All Known Subinterfaces:
RedisBloomCommands, RedisModuleCommands
All Known Implementing Classes:
JedisCluster, JedisPooled, JedisSentineled, JedisSharding, UnifiedJedis

public interface TopKFilterCommands
  • Method Details

    • topkReserve

      String topkReserve(String key, long topk)
      TOPK.RESERVE {key} {topk}
      Parameters:
      key -
      topk -
      Returns:
      OK
    • topkReserve

      String topkReserve(String key, long topk, long width, long depth, double decay)
      TOPK.RESERVE {key} {topk} [{width} {depth} {decay}]
      Parameters:
      key -
      topk -
      width -
      depth -
      decay -
      Returns:
      OK
    • topkAdd

      List<String> topkAdd(String key, String... items)
      TOPK.ADD {key} {item ...}
      Parameters:
      key -
      items -
      Returns:
      items dropped from list
    • topkIncrBy

      default String topkIncrBy(String key, String item, long increment)
      TOPK.INCRBY {key} {item} {increment}
      Parameters:
      key -
      item -
      increment -
      Returns:
      item dropped from list
    • topkIncrBy

      List<String> topkIncrBy(String key, Map<String,Long> itemIncrements)
      TOPK.INCRBY {key} {item} {increment} [{item} {increment} ...]
      Parameters:
      key -
      itemIncrements - item and increment pairs
      Returns:
      item dropped from list
    • topkQuery

      List<Boolean> topkQuery(String key, String... items)
      TOPK.QUERY {key} {item ...}
      Parameters:
      key -
      items -
      Returns:
      if item is in Top-K
    • topkCount

      @Deprecated List<Long> topkCount(String key, String... items)
      Deprecated.
      As of RedisBloom 2.4, this command is regarded as deprecated.
      TOPK.COUNT {key} {item ...}
      Parameters:
      key -
      items -
      Returns:
      count for item
    • topkList

      List<String> topkList(String key)
      TOPK.LIST {key}
      Parameters:
      key -
      Returns:
      k (or less) items in Top K list
    • topkListWithCount

      Map<String,Long> topkListWithCount(String key)
      TOPK.LIST {key} WITHCOUNT
      Parameters:
      key -
      Returns:
      k (or less) items in Top K list
    • topkInfo

      Map<String,Object> topkInfo(String key)
      TOPK.INFO {key}
      Parameters:
      key -
      Returns:
      information