Class ReactiveTransactionalBitMapCommandsImpl<K>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
-
- io.quarkus.redis.runtime.datasource.ReactiveTransactionalBitMapCommandsImpl<K>
-
- All Implemented Interfaces:
ReactiveTransactionalBitMapCommands<K>,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalBitMapCommandsImpl<K> extends AbstractTransactionalCommands implements ReactiveTransactionalBitMapCommands<K>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
-
Constructor Summary
Constructors Constructor Description ReactiveTransactionalBitMapCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveBitMapCommandsImpl<K> reactive, TransactionHolder tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>bitcount(K key)Execute the command BITCOUNT.io.smallrye.mutiny.Uni<Void>bitcount(K key, long start, long end)Execute the command BITCOUNT.io.smallrye.mutiny.Uni<Void>bitfield(K key, BitFieldArgs bitFieldArgs)Execute the command BITFIELD.io.smallrye.mutiny.Uni<Void>bitopAnd(K destination, K... keys)Execute the command BITOP.io.smallrye.mutiny.Uni<Void>bitopNot(K destination, K source)Execute the command BITOP.io.smallrye.mutiny.Uni<Void>bitopOr(K destination, K... keys)Execute the command BITOP.io.smallrye.mutiny.Uni<Void>bitopXor(K destination, K... keys)Execute the command BITOP.io.smallrye.mutiny.Uni<Void>bitpos(K key, int valueToLookFor)Execute the command BITPOS.io.smallrye.mutiny.Uni<Void>bitpos(K key, int bit, long start)Execute the command BITPOS.io.smallrye.mutiny.Uni<Void>bitpos(K key, int bit, long start, long end)Execute the command BITPOS.io.smallrye.mutiny.Uni<Void>getbit(K key, long offset)Returns the bit value at offset in the string value stored at key.io.smallrye.mutiny.Uni<Void>setbit(K key, long offset, int value)Sets or clears the bit at offset in the string value stored at key.-
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.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
ReactiveTransactionalBitMapCommandsImpl
public ReactiveTransactionalBitMapCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveBitMapCommandsImpl<K> reactive, TransactionHolder tx)
-
-
Method Detail
-
bitcount
public io.smallrye.mutiny.Uni<Void> bitcount(K key)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITCOUNT. Summary: Count set bits in a string Group: bitmap Requires Redis 2.6.0- Specified by:
bitcountin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitcount
public io.smallrye.mutiny.Uni<Void> bitcount(K key, long start, long end)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITCOUNT. Summary: Count set bits in a string Group: bitmap Requires Redis 2.6.0- Specified by:
bitcountin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the keystart- the start indexend- the end index- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
getbit
public io.smallrye.mutiny.Uni<Void> getbit(K key, long offset)
Description copied from interface:ReactiveTransactionalBitMapCommandsReturns the bit value at offset in the string value stored at key.- Specified by:
getbitin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the key.offset- the offset- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitfield
public io.smallrye.mutiny.Uni<Void> bitfield(K key, BitFieldArgs bitFieldArgs)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITFIELD. Summary: Perform arbitrary bitfield integer operations on strings Group: bitmap Requires Redis 3.2.0- Specified by:
bitfieldin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitpos
public io.smallrye.mutiny.Uni<Void> bitpos(K key, int valueToLookFor)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7- Specified by:
bitposin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the keyvalueToLookFor-1to look for1,0to look for0- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitpos
public io.smallrye.mutiny.Uni<Void> bitpos(K key, int bit, long start)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7- Specified by:
bitposin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the keybit-1to look for1,0to look for0start- the start position- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitpos
public io.smallrye.mutiny.Uni<Void> bitpos(K key, int bit, long start, long end)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7- Specified by:
bitposin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the keybit-trueto look for1,falseto look for0start- the start positionend- the end position- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitopAnd
public io.smallrye.mutiny.Uni<Void> bitopAnd(K destination, K... keys)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITOP. Summary: Perform a bitwise AND operation between strings Group: bitmap Requires Redis 2.6.0- Specified by:
bitopAndin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
destination- the destination keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitopNot
public io.smallrye.mutiny.Uni<Void> bitopNot(K destination, K source)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITOP. Summary: Perform a bitwise NOT operation between strings Group: bitmap Requires Redis 2.6.0- Specified by:
bitopNotin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
destination- the destination keysource- the source key- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitopOr
public io.smallrye.mutiny.Uni<Void> bitopOr(K destination, K... keys)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITOP. Summary: Perform a bitwise OR operation between strings Group: bitmap Requires Redis 2.6.0- Specified by:
bitopOrin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
destination- the destination keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
bitopXor
public io.smallrye.mutiny.Uni<Void> bitopXor(K destination, K... keys)
Description copied from interface:ReactiveTransactionalBitMapCommandsExecute the command BITOP. Summary: Perform a bitwise XOR operation between strings Group: bitmap Requires Redis 2.6.0- Specified by:
bitopXorin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
destination- the destination keykeys- the keys- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
setbit
public io.smallrye.mutiny.Uni<Void> setbit(K key, long offset, int value)
Description copied from interface:ReactiveTransactionalBitMapCommandsSets or clears the bit at offset in the string value stored at key.- Specified by:
setbitin interfaceReactiveTransactionalBitMapCommands<K>- Parameters:
key- the key.offset- the offsetvalue- the value (O or 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.
-
-