Class BlockingTransactionalCountMinCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
-
- io.quarkus.redis.runtime.datasource.BlockingTransactionalCountMinCommandsImpl<K,V>
-
- All Implemented Interfaces:
TransactionalCountMinCommands<K,V>,TransactionalRedisCommands
public class BlockingTransactionalCountMinCommandsImpl<K,V> extends AbstractTransactionalRedisCommandGroup implements TransactionalCountMinCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
ds, timeout
-
-
Constructor Summary
Constructors Constructor Description BlockingTransactionalCountMinCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalCountMinCommands<K,V> reactive, Duration timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcmsIncrBy(K key, Map<V,Long> couples)Execute the command CMS.INCRBY.voidcmsIncrBy(K key, V value, long increment)Execute the command CMS.INCRBY.voidcmsInitByDim(K key, long width, long depth)Execute the command CMS.INITBYDIM.voidcmsInitByProb(K key, double error, double probability)Execute the command CMS.INITBYPROB.voidcmsMerge(K dest, List<K> src, List<Integer> weight)Execute the command CMS.MERGE.voidcmsQuery(K key, V item)Execute the command CMS.QUERY.voidcmsQuery(K key, V... items)Execute the command CMS.QUERY.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalRedisCommandGroup
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.TransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
BlockingTransactionalCountMinCommandsImpl
public BlockingTransactionalCountMinCommandsImpl(TransactionalRedisDataSource ds, ReactiveTransactionalCountMinCommands<K,V> reactive, Duration timeout)
-
-
Method Detail
-
cmsIncrBy
public void cmsIncrBy(K key, V value, long increment)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.INCRBY. Summary: Increases the count of item by increment. Multiple items can be increased with one call. Group: count-min- Specified by:
cmsIncrByin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullvalue- the value, must not benullincrement- the increment
-
cmsIncrBy
public void cmsIncrBy(K key, Map<V,Long> couples)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.INCRBY. Summary: Increases the count of item by increment. Multiple items can be increased with one call. Group: count-min- Specified by:
cmsIncrByin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullcouples- the set of value/increment pair, must not benull, must not be empty
-
cmsInitByDim
public void cmsInitByDim(K key, long width, long depth)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.INITBYDIM. Summary: Initializes a Count-Min Sketch to dimensions specified by user. Group: count-min- Specified by:
cmsInitByDimin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullwidth- the number of counters in each array. Reduces the error size.depth- the number of counter-arrays. Reduces the probability for an error of a certain size (percentage of total count).
-
cmsInitByProb
public void cmsInitByProb(K key, double error, double probability)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.INITBYPROB. Summary: Initializes a Count-Min Sketch to accommodate requested tolerances. Group: count-min- Specified by:
cmsInitByProbin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullerror- estimate size of error. The error is a percent of total counted items (in decimal). This effects the width of the sketch.probability- the desired probability for inflated count. This should be a decimal value between 0 and 1.
-
cmsQuery
public void cmsQuery(K key, V item)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.QUERY. Summary: Returns the count for one or more items in a sketch. Group: count-min- Specified by:
cmsQueryin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullitem- the item to check, must not benull
-
cmsQuery
public void cmsQuery(K key, V... items)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.QUERY. Summary: Returns the count for one or more items in a sketch. Group: count-min- Specified by:
cmsQueryin interfaceTransactionalCountMinCommands<K,V>- Parameters:
key- the name of the sketch, must not benullitems- the items to check, must not benull, empty or containnull
-
cmsMerge
public void cmsMerge(K dest, List<K> src, List<Integer> weight)
Description copied from interface:TransactionalCountMinCommandsExecute the command CMS.MERGE. Summary: Merges several sketches into one sketch. All sketches must have identical width and depth. Weights can be used to multiply certain sketches. Default weight is 1. Group: count-min- Specified by:
cmsMergein interfaceTransactionalCountMinCommands<K,V>- Parameters:
dest- The name of destination sketch. Must be initialized, must not benullsrc- The names of source sketches to be merged. Must not benull, must not containnull, must not be empty.weight- The multiple of each sketch. Default =1, can be empty, can benull
-
-