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 booleanpfadd(K key, V... values)Execute the command PFADD.longpfcount(K... keys)Execute the command PFCOUNT.voidpfmerge(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:HyperLogLogCommandsExecute the command PFADD. Summary: Adds the specified elements to the specified HyperLogLog. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfaddin interfaceHyperLogLogCommands<K,V>- Parameters:
key- the keyvalues- the values- Returns:
trueat least 1 HyperLogLog internal register was altered.falseotherwise.
-
pfmerge
public void pfmerge(K destkey, K... sourcekeys)
Description copied from interface:HyperLogLogCommandsExecute the command PFMERGE. Summary: Merge N different HyperLogLogs into a single one. Group: hyperloglog Requires Redis 2.8.9- Specified by:
pfmergein interfaceHyperLogLogCommands<K,V>- Parameters:
destkey- the keysourcekeys- the source keys
-
pfcount
public long pfcount(K... keys)
Description copied from interface:HyperLogLogCommandsExecute 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 interfaceHyperLogLogCommands<K,V>- Returns:
- The approximated number of unique elements observed via PFADD.
-
-