@InterfaceStability.Experimental @InterfaceAudience.Public public class MutationCommand extends Object
A single mutation description inside a BinarySubdocMultiMutationRequest.
| Modifier | Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
createIntermediaryPath() |
Mutation |
mutation() |
byte |
opCode() |
String |
path() |
boolean |
xattr() |
@Deprecated public MutationCommand(Mutation mutation, String path, ByteBuf fragment, boolean createIntermediaryPath)
Create a multi-mutation command.
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.@Deprecated public MutationCommand(Mutation mutation, String path, ByteBuf fragment)
Create a multi-mutation command.
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.@Deprecated public MutationCommand(Mutation mutation, String path)
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”).
path - the path to delete inside the document.protected MutationCommand(MutationCommandBuilder builder)
Create a multi-mutation command.
builder - MutationCommandBuilderCopyright © 2017 Couchbase, Inc.. All rights reserved.