Interface ReactiveHyperLogLogCommands
- All Known Subinterfaces:
ReactiveClusterHyperLogLogCommands
public interface ReactiveHyperLogLogCommands
Redis HyperLogLog commands executed using reactive infrastructure.
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
PFADD
command parameters.static class
PFCOUNT
command parameters.static class
PFMERGE
command parameters. -
Method Summary
Modifier and TypeMethodDescriptionpfAdd
(ByteBuffer key, ByteBuffer value) Adds given value to the HyperLogLog stored at given key.pfAdd
(ByteBuffer key, Collection<ByteBuffer> values) Adds given values to the HyperLogLog stored at given key.Adds given values to the HyperLogLog stored at given key.pfCount
(ByteBuffer key) Return the approximated cardinality of the structures observed by the HyperLogLog at key.pfCount
(Collection<ByteBuffer> keys) Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).pfMerge
(ByteBuffer destinationKey, Collection<ByteBuffer> sourceKeys) Merge N different HyperLogLogs at sourceKeys into a single destinationKey.Merge N different HyperLogLogs at sourceKeys into a single destinationKey.
-
Method Details
-
pfAdd
Adds given value to the HyperLogLog stored at given key.- Parameters:
key
- must not be null.value
- must not be null.- Returns:
- See Also:
-
pfAdd
Adds given values to the HyperLogLog stored at given key.- Parameters:
key
- must not be null.values
- must not be null.- Returns:
- See Also:
-
pfAdd
Flux<ReactiveRedisConnection.NumericResponse<ReactiveHyperLogLogCommands.PfAddCommand,Long>> pfAdd(Publisher<ReactiveHyperLogLogCommands.PfAddCommand> commands) Adds given values to the HyperLogLog stored at given key.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
pfCount
Return the approximated cardinality of the structures observed by the HyperLogLog at key.- Parameters:
key
- must not be null.- Returns:
- See Also:
-
pfCount
Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).- Parameters:
keys
- must not be null.- Returns:
- See Also:
-
pfCount
Flux<ReactiveRedisConnection.NumericResponse<ReactiveHyperLogLogCommands.PfCountCommand,Long>> pfCount(Publisher<ReactiveHyperLogLogCommands.PfCountCommand> commands) Return the approximated cardinality of the structures observed by the HyperLogLog at key(s).- Parameters:
commands
- must not be null.- Returns:
- See Also:
-
pfMerge
Merge N different HyperLogLogs at sourceKeys into a single destinationKey.- Parameters:
destinationKey
- must not be null.sourceKeys
- must not be null.- Returns:
- See Also:
-
pfMerge
Flux<ReactiveRedisConnection.BooleanResponse<ReactiveHyperLogLogCommands.PfMergeCommand>> pfMerge(Publisher<ReactiveHyperLogLogCommands.PfMergeCommand> commands) Merge N different HyperLogLogs at sourceKeys into a single destinationKey.- Parameters:
commands
- must not be null.- Returns:
- See Also:
-