Class ReactiveTransactionalAutoSuggestCommandsImpl<K>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalAutoSuggestCommandsImpl<K>
- All Implemented Interfaces:
ReactiveTransactionalAutoSuggestCommands<K>
,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalAutoSuggestCommandsImpl<K>
extends AbstractTransactionalCommands
implements ReactiveTransactionalAutoSuggestCommands<K>
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
Constructor Summary
ConstructorDescriptionReactiveTransactionalAutoSuggestCommandsImpl
(ReactiveTransactionalRedisDataSource ds, ReactiveAutoSuggestCommandsImpl<K> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
Execute the command FT.SUGADD.io.smallrye.mutiny.Uni<Void>
Execute the command FT.SUGDEL.io.smallrye.mutiny.Uni<Void>
Execute the command FT.SUGGET.io.smallrye.mutiny.Uni<Void>
Execute the command FT.SUGGET.io.smallrye.mutiny.Uni<Void>
Execute the command FT.SUGLEN.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscard
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.autosuggest.ReactiveTransactionalAutoSuggestCommands
ftSugAdd
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Constructor Details
-
ReactiveTransactionalAutoSuggestCommandsImpl
public ReactiveTransactionalAutoSuggestCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveAutoSuggestCommandsImpl<K> reactive, TransactionHolder tx)
-
-
Method Details
-
ftSugAdd
Description copied from interface:ReactiveTransactionalAutoSuggestCommands
Execute the command FT.SUGADD. Summary: Add a suggestion string to an auto-complete suggestion dictionary Group: auto-suggest- Specified by:
ftSugAdd
in interfaceReactiveTransactionalAutoSuggestCommands<K>
- Parameters:
key
- the suggestion dictionary keystring
- the suggestion string to indexscore
- the floating point number of the suggestion string's weightincrement
- increments the existing entry of the suggestion by the given score, instead of replacing the score. This is useful for updating the dictionary based on user queries in real time.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSugDel
Description copied from interface:ReactiveTransactionalAutoSuggestCommands
Execute the command FT.SUGDEL. Summary: Delete a string from a suggestion index Group: auto-suggest- Specified by:
ftSugDel
in interfaceReactiveTransactionalAutoSuggestCommands<K>
- Parameters:
key
- the suggestion dictionary keystring
- the suggestion string to index- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSugget
Description copied from interface:ReactiveTransactionalAutoSuggestCommands
Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest- Specified by:
ftSugget
in interfaceReactiveTransactionalAutoSuggestCommands<K>
- Parameters:
key
- the suggestion dictionary keyprefix
- is prefix to complete on.- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSugget
Description copied from interface:ReactiveTransactionalAutoSuggestCommands
Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest- Specified by:
ftSugget
in interfaceReactiveTransactionalAutoSuggestCommands<K>
- Parameters:
key
- the suggestion dictionary keyprefix
- is prefix to complete on.args
- the extra argument, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSugLen
Description copied from interface:ReactiveTransactionalAutoSuggestCommands
Execute the command FT.SUGLEN. Summary: Get the size of an auto-complete suggestion dictionary Group: auto-suggest- Specified by:
ftSugLen
in interfaceReactiveTransactionalAutoSuggestCommands<K>
- Parameters:
key
- the suggestion dictionary key- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-