Class MutationCommandBuilder
- java.lang.Object
-
- com.couchbase.client.core.message.kv.subdoc.multi.MutationCommandBuilder
-
@Committed @Public public class MutationCommandBuilder extends Object
Builder forMutationCommand
.- 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
All Methods Instance Methods Concrete Methods 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 Detail
-
MutationCommandBuilder
public MutationCommandBuilder(Mutation mutation, String path)
Create a multi-mutation command.- Parameters:
mutation
- the mutation type.path
- the path to mutate inside the document.
-
MutationCommandBuilder
public MutationCommandBuilder(Mutation mutation, String path, ByteBuf fragment)
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 Detail
-
build
public MutationCommand build()
-
mutation
public Mutation mutation()
-
path
public String path()
-
opCode
public byte opCode()
-
createIntermediaryPath
public boolean createIntermediaryPath()
-
xattr
public boolean xattr()
-
expandMacros
public boolean expandMacros()
-
createIntermediaryPath
public MutationCommandBuilder createIntermediaryPath(boolean createIntermediaryPath)
-
fragment
public MutationCommandBuilder fragment(ByteBuf fragment)
-
xattr
public MutationCommandBuilder xattr(boolean xattr)
-
expandMacros
public MutationCommandBuilder expandMacros(boolean expandMacros)
-
-