Class ReactiveTransactionalCountMinCommandsImpl<K,V>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalCountMinCommandsImpl<K,V>
- All Implemented Interfaces:
ReactiveTransactionalCountMinCommands<K,,V> ReactiveTransactionalRedisCommands
public class ReactiveTransactionalCountMinCommandsImpl<K,V>
extends AbstractTransactionalCommands
implements ReactiveTransactionalCountMinCommands<K,V>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx -
Constructor Summary
ConstructorsConstructorDescriptionReactiveTransactionalCountMinCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveCountMinCommandsImpl<K, V> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>Execute the command CMS.INCRBY.io.smallrye.mutiny.Uni<Void>Execute the command CMS.INCRBY.io.smallrye.mutiny.Uni<Void>cmsInitByDim(K key, long width, long depth) Execute the command CMS.INITBYDIM.io.smallrye.mutiny.Uni<Void>cmsInitByProb(K key, double error, double probability) Execute the command CMS.INITBYPROB.io.smallrye.mutiny.Uni<Void>Execute the command CMS.MERGE.io.smallrye.mutiny.Uni<Void>Execute the command CMS.QUERY.io.smallrye.mutiny.Uni<Void>Execute the command CMS.QUERY.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Constructor Details
-
ReactiveTransactionalCountMinCommandsImpl
public ReactiveTransactionalCountMinCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveCountMinCommandsImpl<K, V> reactive, TransactionHolder tx)
-
-
Method Details
-
cmsIncrBy
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute 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 interfaceReactiveTransactionalCountMinCommands<K,V> - Parameters:
key- the name of the sketch, must not benullvalue- the value, must not benullincrement- the increment- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsIncrBy
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute 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 interfaceReactiveTransactionalCountMinCommands<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- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsInitByDim
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute the command CMS.INITBYDIM. Summary: Initializes a Count-Min Sketch to dimensions specified by user. Group: count-min- Specified by:
cmsInitByDimin interfaceReactiveTransactionalCountMinCommands<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).- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsInitByProb
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute the command CMS.INITBYPROB. Summary: Initializes a Count-Min Sketch to accommodate requested tolerances. Group: count-min- Specified by:
cmsInitByProbin interfaceReactiveTransactionalCountMinCommands<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.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsQuery
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute the command CMS.QUERY. Summary: Returns the count for one or more items in a sketch. Group: count-min- Specified by:
cmsQueryin interfaceReactiveTransactionalCountMinCommands<K,V> - Parameters:
key- the name of the sketch, must not benullitem- the item to check, must not benull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsQuery
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute the command CMS.QUERY. Summary: Returns the count for one or more items in a sketch. Group: count-min- Specified by:
cmsQueryin interfaceReactiveTransactionalCountMinCommands<K,V> - Parameters:
key- the name of the sketch, must not benullitems- the items to check, must not benull, empty or containnull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cmsMerge
Description copied from interface:ReactiveTransactionalCountMinCommandsExecute 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 interfaceReactiveTransactionalCountMinCommands<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- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-