Class MutationCommandBuilder
java.lang.Object
com.couchbase.client.core.message.kv.subdoc.multi.MutationCommandBuilder
@Committed @Public public class MutationCommandBuilder extends Object
Builder for
MutationCommand
.- Since:
- 1.4.2
- Author:
- Subhashni Balakrishnan
-
Constructor Summary
Constructors Constructor Description MutationCommandBuilder(Mutation mutation, String path)
Create a multi-mutation command.MutationCommandBuilder(Mutation mutation, String path, ByteBuf fragment)
Create a multi-mutation command. -
Method Summary
Modifier and Type Method Description MutationCommand
build()
boolean
createIntermediaryPath()
MutationCommandBuilder
createIntermediaryPath(boolean createIntermediaryPath)
boolean
expandMacros()
MutationCommandBuilder
expandMacros(boolean expandMacros)
MutationCommandBuilder
fragment(ByteBuf fragment)
Mutation
mutation()
byte
opCode()
String
path()
boolean
xattr()
MutationCommandBuilder
xattr(boolean xattr)
-
Constructor Details
-
MutationCommandBuilder
Create a multi-mutation command.- Parameters:
mutation
- the mutation type.path
- the path to mutate inside the document.
-
MutationCommandBuilder
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.
-
-
Method Details
-
build
-
mutation
-
path
-
opCode
public byte opCode() -
createIntermediaryPath
public boolean createIntermediaryPath() -
xattr
public boolean xattr() -
expandMacros
public boolean expandMacros() -
createIntermediaryPath
-
fragment
-
xattr
-
expandMacros
-