Class ReactiveHyperLogLogCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractRedisCommands
-
- io.quarkus.redis.runtime.datasource.AbstractHyperLogLogCommands<K,V>
-
- io.quarkus.redis.runtime.datasource.ReactiveHyperLogLogCommandsImpl<K,V>
-
- All Implemented Interfaces:
ReactiveHyperLogLogCommands<K,V>,ReactiveRedisCommands
public class ReactiveHyperLogLogCommandsImpl<K,V> extends AbstractHyperLogLogCommands<K,V> implements ReactiveHyperLogLogCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
marshaller, redis
-
-
Constructor Summary
Constructors Constructor Description ReactiveHyperLogLogCommandsImpl(ReactiveRedisDataSourceImpl redis, Class<K> k, Class<V> v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReactiveRedisDataSourcegetDataSource()io.smallrye.mutiny.Uni<Boolean>pfadd(K key, V... values)Execute the command PFADD.io.smallrye.mutiny.Uni<Long>pfcount(K... keys)Execute the command PFCOUNT.io.smallrye.mutiny.Uni<Void>pfmerge(K destination, K... sources)Execute the command PFMERGE.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractHyperLogLogCommands
_pfadd, _pfcount, _pfmerge
-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommands
execute
-
-
-
-
Constructor Detail
-
ReactiveHyperLogLogCommandsImpl
public ReactiveHyperLogLogCommandsImpl(ReactiveRedisDataSourceImpl redis, Class<K> k, Class<V> v)
-
-
Method Detail
-
getDataSource
public ReactiveRedisDataSource getDataSource()
- Specified by:
getDataSourcein interfaceReactiveRedisCommands- Returns:
- the data source.
-
pfadd
@SafeVarargs public final io.smallrye.mutiny.Uni<Boolean> pfadd(K key, V... values)
Description copied from interface:ReactiveHyperLogLogCommandsExecute the command PFADD. Summary: Adds the specified elements to the specified HyperLogLog. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfaddin interfaceReactiveHyperLogLogCommands<K,V>- Parameters:
key- the keyvalues- the values- Returns:
trueat least 1 HyperLogLog internal register was altered.falseotherwise.
-
pfmerge
@SafeVarargs public final io.smallrye.mutiny.Uni<Void> pfmerge(K destination, K... sources)
Description copied from interface:ReactiveHyperLogLogCommandsExecute the command PFMERGE. Summary: Merge N different HyperLogLogs into a single one. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfmergein interfaceReactiveHyperLogLogCommands<K,V>- Parameters:
destination- the keysources- the source keys- Returns:
- a Uni emitting a
nullitem on completion
-
pfcount
@SafeVarargs public final io.smallrye.mutiny.Uni<Long> pfcount(K... keys)
Description copied from interface:ReactiveHyperLogLogCommandsExecute 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- Specified by:
pfcountin interfaceReactiveHyperLogLogCommands<K,V>- Returns:
- The approximated number of unique elements observed via PFADD.
-
-