Class BlockingHyperLogLogCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingHyperLogLogCommandsImpl<K,V>
-
- All Implemented Interfaces:
HyperLogLogCommands<K,V>
,RedisCommands
public class BlockingHyperLogLogCommandsImpl<K,V> extends AbstractRedisCommandGroup implements HyperLogLogCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingHyperLogLogCommandsImpl(RedisDataSource ds, ReactiveHyperLogLogCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 class io.quarkus.redis.runtime.datasource.AbstractRedisCommandGroup
getDataSource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingHyperLogLogCommandsImpl
public BlockingHyperLogLogCommandsImpl(RedisDataSource ds, ReactiveHyperLogLogCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
pfadd
public boolean pfadd(K key, V... values)
Description copied from interface:HyperLogLogCommands
Execute the command PFADD. Summary: Adds the specified elements to the specified HyperLogLog. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfadd
in interfaceHyperLogLogCommands<K,V>
- Parameters:
key
- the keyvalues
- the values- Returns:
true
at least 1 HyperLogLog internal register was altered. 0 otherwise.
-
pfmerge
public void pfmerge(K destkey, K... sourcekeys)
Description copied from interface:HyperLogLogCommands
Execute the command PFMERGE. Summary: Merge N different HyperLogLogs into a single one. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfmerge
in interfaceHyperLogLogCommands<K,V>
- Parameters:
destkey
- the keysourcekeys
- the source keys
-
pfcount
public long pfcount(K... keys)
Description copied from interface:HyperLogLogCommands
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- Specified by:
pfcount
in interfaceHyperLogLogCommands<K,V>
- Returns:
- The approximated number of unique elements observed via PFADD.
-
-