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>
  • Constructor Details

  • Method Details

    • bitcount

      public io.smallrye.mutiny.Uni<Void> bitcount(K key)
      Description copied from interface: ReactiveTransactionalBitMapCommands
      Execute the command BITCOUNT. Summary: Count set bits in a string Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitcount in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITCOUNT. Summary: Count set bits in a string Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitcount in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      start - the start index
      end - the end index
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Returns the bit value at offset in the string value stored at key.
      Specified by:
      getbit in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key.
      offset - the offset
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITFIELD. Summary: Perform arbitrary bitfield integer operations on strings Group: bitmap Requires Redis 3.2.0
      Specified by:
      bitfield in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7
      Specified by:
      bitpos in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      valueToLookFor - 1 to look for 1, 0 to look for 0
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7
      Specified by:
      bitpos in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      bit - 1 to look for 1, 0 to look for 0
      start - the start position
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITPOS. Summary: Find first bit set or clear in a string Group: bitmap Requires Redis 2.8.7
      Specified by:
      bitpos in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key
      bit - true to look for 1, false to look for 0
      start - the start position
      end - the end position
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITOP. Summary: Perform a bitwise AND operation between strings Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitopAnd in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      destination - the destination key
      keys - the keys
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITOP. Summary: Perform a bitwise NOT operation between strings Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitopNot in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      destination - the destination key
      source - the source key
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITOP. Summary: Perform a bitwise OR operation between strings Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitopOr in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      destination - the destination key
      keys - the keys
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Execute the command BITOP. Summary: Perform a bitwise XOR operation between strings Group: bitmap Requires Redis 2.6.0
      Specified by:
      bitopXor in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      destination - the destination key
      keys - the keys
      Returns:
      A Uni emitting null when 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: ReactiveTransactionalBitMapCommands
      Sets or clears the bit at offset in the string value stored at key.
      Specified by:
      setbit in interface ReactiveTransactionalBitMapCommands<K>
      Parameters:
      key - the key.
      offset - the offset
      value - the value (O or 1)
      Returns:
      A Uni emitting null when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.