Class BitFieldArgs
java.lang.Object
io.quarkus.redis.datasource.bitmap.BitFieldArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a bit field type with details about signed/unsigned and the number of bits.static classRepresents a bit field offset.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Adds a newGETsubcommand using offset0and the field type of the previous command.get(int offset) Adds a newGETsubcommand using the field type of the previous command.get(BitFieldArgs.BitFieldType bitFieldType) Adds a newGETsubcommand using offset0.get(BitFieldArgs.BitFieldType bft, int offset) Adds a newGETsubcommand.get(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset) Adds a newGETsubcommand.incrBy(int offset, long value) Adds a newINCRBYsubcommand using the field type of the previous command.incrBy(long value) Adds a newINCRBYsubcommand using offset0and the field type of the previous command.incrBy(BitFieldArgs.BitFieldType bitFieldType, int offset, long value) Adds a newINCRBYsubcommand.incrBy(BitFieldArgs.BitFieldType bitFieldType, long value) Adds a newINCRBYsubcommand using offset0.incrBy(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset, long value) Adds a newINCRBYsubcommand.static BitFieldArgs.Offsetoffset(int offset) Creates a newBitFieldArgs.Offsetfor the givenoffset.overflow(BitFieldArgs.OverflowType overflowType) Adds a newOVERFLOWsubcommand.set(int offset, long value) Adds a newSETsubcommand using the field type of the previous command.set(long value) Adds a newSETsubcommand using offset0and the field type of the previous command.set(BitFieldArgs.BitFieldType bft, int offset, long value) Adds a newSETsubcommand.set(BitFieldArgs.BitFieldType bitFieldType, long value) Adds a newSETsubcommand using offset0.set(BitFieldArgs.BitFieldType bft, BitFieldArgs.Offset offset, long value) Adds a newSETsubcommand.static BitFieldArgs.BitFieldTypesigned(int bits) Creates a new signedBitFieldArgs.BitFieldTypefor the given number ofbits.toArgs()static BitFieldArgs.OffsettypeWidthBasedOffset(int offset) Creates a newBitFieldArgs.Offsetfor the givenoffsetthat is multiplied by the integer type width used in the sub command.static BitFieldArgs.BitFieldTypeunsigned(int bits) Creates a new unsignedBitFieldArgs.BitFieldTypefor the given number ofbits.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
BitFieldArgs
public BitFieldArgs()
-
-
Method Details
-
get
Adds a newGETsubcommand using offset0and the field type of the previous command.- Returns:
- the current
BitFieldArgs - Throws:
IllegalStateException- if no previous field type was found
-
get
Adds a newGETsubcommand using offset0.- Parameters:
bitFieldType- the bit field type, must not benull.- Returns:
- the current
BitFieldArgs
-
get
Adds a newGETsubcommand using the field type of the previous command.- Parameters:
offset- bitfield offset- Returns:
- a new
GETsubcommand for the givenbitFieldTypeandoffset. - Throws:
IllegalStateException- if no previous field type was found
-
get
Adds a newGETsubcommand.- Parameters:
bft- the bit field type, must not benull.offset- bitfield offset- Returns:
- the current
BitFieldArgs
-
get
Adds a newGETsubcommand.- Parameters:
bft- the bit field type, must not benull.offset- bitfield offset- Returns:
- the current
BitFieldArgs
-
set
Adds a newSETsubcommand.- Parameters:
bft- the bit field type, must not benull.offset- bitfield offsetvalue- the value- Returns:
- the current
BitFieldArgs
-
set
Adds a newSETsubcommand.- 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 newSETsubcommand using offset0and 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 newSETsubcommand using offset0.- Parameters:
bitFieldType- the bit field type, must not benull.value- the value- Returns:
- the current
BitFieldArgs
-
set
Adds a newSETsubcommand 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 newINCRBYsubcommand.- Parameters:
bitFieldType- the bit field type, must not benull.offset- bitfield offsetvalue- the value- Returns:
- the current
BitFieldArgs
-
incrBy
Adds a newINCRBYsubcommand.- 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 newINCRBYsubcommand using the field type of the previous command.- Parameters:
offset- bitfield offsetvalue- the value- Returns:
- a new
INCRBYsubcommand for the givenbitFieldType,offsetandvalue. - Throws:
IllegalStateException- if no previous field type was found
-
incrBy
Adds a newINCRBYsubcommand using offset0and 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 newINCRBYsubcommand using offset0.- Parameters:
bitFieldType- the bit field type, must not benull.value- the value- Returns:
- the current
BitFieldArgs
-
overflow
Adds a newOVERFLOWsubcommand.- Parameters:
overflowType- type of overflow, must not benull.- Returns:
- the current
BitFieldArgs
-
signed
Creates a new signedBitFieldArgs.BitFieldTypefor the given number ofbits. Redis allows up to64bits for unsigned integers.- Parameters:
bits- number of bits to define the integer type width.- Returns:
- the
BitFieldArgs.BitFieldType.
-
unsigned
Creates a new unsignedBitFieldArgs.BitFieldTypefor the given number ofbits. Redis allows up to63bits for unsigned integers.- Parameters:
bits- number of bits to define the integer type width.- Returns:
- the
BitFieldArgs.BitFieldType.
-
offset
Creates a newBitFieldArgs.Offsetfor the givenoffset.- Parameters:
offset- zero-based offset.- Returns:
- the
BitFieldArgs.Offset.
-
typeWidthBasedOffset
Creates a newBitFieldArgs.Offsetfor the givenoffsetthat 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:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-