Interface RedisHyperLogLogCommands
- All Known Subinterfaces:
DefaultedRedisClusterConnection,DefaultedRedisConnection,RedisClusterConnection,RedisCommands,RedisConnection,RedisConnectionUtils.RedisConnectionProxy,StringRedisConnection
- All Known Implementing Classes:
AbstractRedisConnection,DefaultStringRedisConnection,JedisClusterConnection,JedisConnection,LettuceClusterConnection,LettuceConnection
@NullUnmarked
public interface RedisHyperLogLogCommands
HyperLogLog specific commands supported by Redis.
- Since:
- 1.5
- Author:
- Christoph Strobl, Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionpfAdd(byte @NonNull [] key, byte @NonNull [] @NonNull ... values) Adds given values to the HyperLogLog stored at given key.pfCount(byte @NonNull [] @NonNull ... keys) Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).voidpfMerge(byte @NonNull [] destinationKey, byte @NonNull [] @NonNull ... sourceKeys) Merge N different HyperLogLogs at sourceKeys into a single destinationKey.
-
Method Details
-
pfAdd
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
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 @NonNull [] destinationKey, byte @NonNull [] @NonNull ... sourceKeys) Merge N different HyperLogLogs at sourceKeys into a single destinationKey.- Parameters:
destinationKey- must not be null.sourceKeys- must not be null.- See Also:
-