Interface RedisHyperLogLogCommands

All Known Subinterfaces:
DefaultedRedisClusterConnection, DefaultedRedisConnection, RedisClusterConnection, RedisCommands, RedisConnection, RedisConnectionUtils.RedisConnectionProxy, StringRedisConnection
All Known Implementing Classes:
AbstractRedisConnection, DefaultStringRedisConnection, JedisClusterConnection, JedisConnection, LettuceClusterConnection, LettuceConnection

public interface RedisHyperLogLogCommands
HyperLogLog specific commands supported by Redis.
Since:
1.5
Author:
Christoph Strobl, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    pfAdd(byte[] key, byte[]... values)
    Adds given values to the HyperLogLog stored at given key.
    pfCount(byte[]... keys)
    Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).
    void
    pfMerge(byte[] destinationKey, byte[]... sourceKeys)
    Merge N different HyperLogLogs at sourceKeys into a single destinationKey.
  • Method Details

    • pfAdd

      @Nullable Long pfAdd(byte[] key, byte[]... values)
      Adds given values to the HyperLogLog stored at given key.
      Parameters:
      key - must not be null.
      values - must not be null.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • pfCount

      @Nullable Long pfCount(byte[]... keys)
      Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).
      Parameters:
      keys - must not be null.
      Returns:
      null when used in pipeline / transaction.
      See Also:
    • pfMerge

      void pfMerge(byte[] destinationKey, byte[]... sourceKeys)
      Merge N different HyperLogLogs at sourceKeys into a single destinationKey.
      Parameters:
      destinationKey - must not be null.
      sourceKeys - must not be null.
      See Also: