Interface HyperLogLogCommands<K,V>

Type Parameters:
K - the type of the key
V - the type of the value stored in the sets
All Superinterfaces:
RedisCommands
All Known Implementing Classes:
BlockingHyperLogLogCommandsImpl

public interface HyperLogLogCommands<K,V> extends RedisCommands
Allows executing commands from the hyperloglog group. See the hyperloglog command list for further information about these commands.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    pfadd(K key, V... values)
    Execute the command PFADD.
    long
    pfcount(K... keys)
    Execute the command PFCOUNT.
    void
    pfmerge(K destkey, K... sourcekeys)
    Execute the command PFMERGE.

    Methods inherited from interface io.quarkus.redis.datasource.RedisCommands

    getDataSource
  • Method Details

    • pfadd

      boolean pfadd(K key, V... values)
      Execute the command PFADD. Summary: Adds the specified elements to the specified HyperLogLog. Group: hyperloglog Requires Redis 2.8.9
      Parameters:
      key - the key
      values - the values
      Returns:
      true at least 1 HyperLogLog internal register was altered. false otherwise.
    • pfmerge

      void pfmerge(K destkey, K... sourcekeys)
      Execute the command PFMERGE. Summary: Merge N different HyperLogLogs into a single one. Group: hyperloglog Requires Redis 2.8.9
      Parameters:
      destkey - the key
      sourcekeys - the source keys
    • pfcount

      long pfcount(K... keys)
      Execute the command PFCOUNT. Summary: Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). Group: hyperloglog Requires Redis 2.8.9
      Returns:
      The approximated number of unique elements observed via PFADD.