Class MutationCommand
- java.lang.Object
-
- com.couchbase.client.core.message.kv.subdoc.multi.MutationCommand
-
@Committed @Public public class MutationCommand extends Object
A single mutation description inside aBinarySubdocMultiMutationRequest
.- Since:
- 1.2
- Author:
- Simon Baslé
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MutationCommand(MutationCommandBuilder builder)
Create a multi-mutation command.MutationCommand(Mutation mutation, String path)
Deprecated.MutationCommand(Mutation mutation, String path, ByteBuf fragment)
Deprecated.MutationCommand(Mutation mutation, String path, ByteBuf fragment, boolean createIntermediaryPath)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createIntermediaryPath()
boolean
expandMacros()
Mutation
mutation()
byte
opCode()
String
path()
boolean
xattr()
-
-
-
Constructor Detail
-
MutationCommand
@Deprecated public MutationCommand(Mutation mutation, String path, ByteBuf fragment, boolean createIntermediaryPath)
Deprecated.Create a multi-mutation command.- Parameters:
mutation
- the mutation type.path
- the path to mutate inside the document.fragment
- the target value for the mutation. This will be released when the request is sent.createIntermediaryPath
- true if missing parts of the path should be created if possible, false otherwise.
-
MutationCommand
@Deprecated public MutationCommand(Mutation mutation, String path, ByteBuf fragment)
Deprecated.Create a multi-mutation command.- Parameters:
mutation
- the mutation type.path
- the path to mutate inside the document.fragment
- the target value for the mutation. This will be released when the request is sent.
-
MutationCommand
@Deprecated public MutationCommand(Mutation mutation, String path)
Deprecated.Create a multi-mutation without a fragment (should be restricted to DELETE, not to be confused with an empty string fragment where ByteBuf contains """
", or the null fragment where ByteBuf contains "NULL
").- Parameters:
path
- the path to delete inside the document.
-
MutationCommand
protected MutationCommand(MutationCommandBuilder builder)
Create a multi-mutation command.- Parameters:
builder
-MutationCommandBuilder
-
-