Class BITFIELD
java.lang.Object
org.infinispan.server.resp.RespCommand
org.infinispan.server.resp.commands.bitmap.BITFIELD
- All Implemented Interfaces:
BaseResp3Command, Resp3Command
- Direct Known Subclasses:
BITFIELD_RO
Executes the Redis BITFIELD command with its multiple subcommands.
The BITFIELD command is a versatile tool for manipulating bitfields stored in Redis strings.
It allows for setting, getting, and incrementing arbitrary-width signed and unsigned integers
at any position within the string.
This implementation supports the GET, SET, and INCRBY subcommands, along with the OVERFLOW
option for fine-grained control over increment and set operations that exceed the specified
integer size.
- Since:
- 16.2
- See Also:
-
Field Summary
FieldsFields inherited from class RespCommand
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) Methods inherited from class RespCommand
aclMask, extractKeys, fromByteBuf, fromString, getArity, getFirstKeyPos, getLastKeyPos, getName, getSteps, handleException, hasValidNumberOfArguments, match, size, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BaseResp3Command
aclMask
-
Field Details
-
readOnly
protected final boolean readOnly
-
-
Constructor Details
-
BITFIELD
public BITFIELD() -
BITFIELD
protected BITFIELD(boolean readOnly, long mask)
-
-
Method Details
-
perform
public CompletionStage<RespRequestHandler> perform(Resp3Handler handler, io.netty.channel.ChannelHandlerContext ctx, List<byte[]> arguments) - Specified by:
performin interfaceResp3Command
-