Class BitFieldArgs
java.lang.Object
io.quarkus.redis.datasource.bitmap.BitFieldArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a bit field type with details about signed/unsigned and the number of bits.static class
Represents a bit field offset.static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Adds a newGET
subcommand using offset0
and the field type of the previous command.get
(int offset) Adds a newGET
subcommand using the field type of the previous command.get
(BitFieldArgs.BitFieldType bitFieldType) Adds a newGET
subcommand using offset0
.get
(BitFieldArgs.BitFieldType bft, int offset) Adds a newGET
subcommand.get
(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset) Adds a newGET
subcommand.incrBy
(int offset, long value) Adds a newINCRBY
subcommand using the field type of the previous command.incrBy
(long value) Adds a newINCRBY
subcommand using offset0
and the field type of the previous command.incrBy
(BitFieldArgs.BitFieldType bitFieldType, int offset, long value) Adds a newINCRBY
subcommand.incrBy
(BitFieldArgs.BitFieldType bitFieldType, long value) Adds a newINCRBY
subcommand using offset0
.incrBy
(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset, long value) Adds a newINCRBY
subcommand.static BitFieldArgs.Offset
offset
(int offset) Creates a newBitFieldArgs.Offset
for the givenoffset
.overflow
(BitFieldArgs.OverflowType overflowType) Adds a newOVERFLOW
subcommand.set
(int offset, long value) Adds a newSET
subcommand using the field type of the previous command.set
(long value) Adds a newSET
subcommand using offset0
and the field type of the previous command.set
(BitFieldArgs.BitFieldType bft, int offset, long value) Adds a newSET
subcommand.set
(BitFieldArgs.BitFieldType bitFieldType, long value) Adds a newSET
subcommand using offset0
.set
(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset, long value) Adds a newSET
subcommand.static BitFieldArgs.BitFieldType
signed
(int bits) Creates a new signedBitFieldArgs.BitFieldType
for the given number ofbits
.toArgs()
static BitFieldArgs.Offset
typeWidthBasedOffset
(int offset) Creates a newBitFieldArgs.Offset
for the givenoffset
that is multiplied by the integer type width used in the sub command.static BitFieldArgs.BitFieldType
unsigned
(int bits) Creates a new unsignedBitFieldArgs.BitFieldType
for the given number ofbits
.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.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
BitFieldArgs
public BitFieldArgs()
-
-
Method Details
-
get
Adds a newGET
subcommand using offset0
and the field type of the previous command.- Returns:
- the current
BitFieldArgs
- Throws:
IllegalStateException
- if no previous field type was found
-
get
Adds a newGET
subcommand using offset0
.- Parameters:
bitFieldType
- the bit field type, must not benull
.- Returns:
- the current
BitFieldArgs
-
get
Adds a newGET
subcommand using the field type of the previous command.- Parameters:
offset
- bitfield offset- Returns:
- a new
GET
subcommand for the givenbitFieldType
andoffset
. - Throws:
IllegalStateException
- if no previous field type was found
-
get
Adds a newGET
subcommand.- Parameters:
bft
- the bit field type, must not benull
.offset
- bitfield offset- Returns:
- the current
BitFieldArgs
-
get
Adds a newGET
subcommand.- Parameters:
bft
- the bit field type, must not benull
.offset
- bitfield offset- Returns:
- the current
BitFieldArgs
-
set
Adds a newSET
subcommand.- Parameters:
bft
- the bit field type, must not benull
.offset
- bitfield offsetvalue
- the value- Returns:
- the current
BitFieldArgs
-
set
Adds a newSET
subcommand.- Parameters:
bft
- the bit field type, must not benull
.offset
- bitfield offset, must not benull
.value
- the value- Returns:
- the current
BitFieldArgs
-
set
Adds a newSET
subcommand using offset0
and the field type of the previous command.- Parameters:
value
- the value- Returns:
- the current
BitFieldArgs
- Throws:
IllegalStateException
- if no previous field type was found
-
set
Adds a newSET
subcommand using offset0
.- Parameters:
bitFieldType
- the bit field type, must not benull
.value
- the value- Returns:
- the current
BitFieldArgs
-
set
Adds a newSET
subcommand using the field type of the previous command.- Parameters:
offset
- bitfield offsetvalue
- the value- Returns:
- the current
BitFieldArgs
- Throws:
IllegalStateException
- if no previous field type was found
-
incrBy
Adds a newINCRBY
subcommand.- Parameters:
bitFieldType
- the bit field type, must not benull
.offset
- bitfield offsetvalue
- the value- Returns:
- the current
BitFieldArgs
-
incrBy
Adds a newINCRBY
subcommand.- Parameters:
bft
- the bit field type, must not benull
.offset
- bitfield offset, must not benull
.value
- the value- Returns:
- the current
BitFieldArgs
-
incrBy
Adds a newINCRBY
subcommand using the field type of the previous command.- Parameters:
offset
- bitfield offsetvalue
- the value- Returns:
- a new
INCRBY
subcommand for the givenbitFieldType
,offset
andvalue
. - Throws:
IllegalStateException
- if no previous field type was found
-
incrBy
Adds a newINCRBY
subcommand using offset0
and the field type of the previous command.- Parameters:
value
- the value- Returns:
- the current
BitFieldArgs
- Throws:
IllegalStateException
- if no previous field type was found
-
incrBy
Adds a newINCRBY
subcommand using offset0
.- Parameters:
bitFieldType
- the bit field type, must not benull
.value
- the value- Returns:
- the current
BitFieldArgs
-
overflow
Adds a newOVERFLOW
subcommand.- Parameters:
overflowType
- type of overflow, must not benull
.- Returns:
- the current
BitFieldArgs
-
signed
Creates a new signedBitFieldArgs.BitFieldType
for the given number ofbits
. Redis allows up to64
bits for unsigned integers.- Parameters:
bits
- number of bits to define the integer type width.- Returns:
- the
BitFieldArgs.BitFieldType
.
-
unsigned
Creates a new unsignedBitFieldArgs.BitFieldType
for the given number ofbits
. Redis allows up to63
bits for unsigned integers.- Parameters:
bits
- number of bits to define the integer type width.- Returns:
- the
BitFieldArgs.BitFieldType
.
-
offset
Creates a newBitFieldArgs.Offset
for the givenoffset
.- Parameters:
offset
- zero-based offset.- Returns:
- the
BitFieldArgs.Offset
.
-
typeWidthBasedOffset
Creates a newBitFieldArgs.Offset
for the givenoffset
that is multiplied by the integer type width used in the sub command.- Parameters:
offset
- offset to be multiplied by the integer type width.- Returns:
- the
BitFieldArgs.Offset
.
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-