@InterfaceStability.Committed @InterfaceAudience.Public public class MutationCommandBuilder extends Object
Builder for MutationCommand
.
Constructor and Description |
---|
MutationCommandBuilder(Mutation mutation,
String path)
Create a multi-mutation command.
|
MutationCommandBuilder(Mutation mutation,
String path,
ByteBuf fragment)
Create a multi-mutation command.
|
Modifier and Type | Method and Description |
---|---|
MutationCommand |
build() |
boolean |
createIntermediaryPath() |
MutationCommandBuilder |
createIntermediaryPath(boolean createIntermediaryPath) |
MutationCommandBuilder |
fragment(ByteBuf fragment) |
Mutation |
mutation() |
byte |
opCode() |
String |
path() |
boolean |
xattr() |
MutationCommandBuilder |
xattr(boolean xattr) |
public MutationCommandBuilder(Mutation mutation, String path)
Create a multi-mutation command.
mutation
- the mutation type.path
- the path to mutate inside the document.public MutationCommandBuilder(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.public MutationCommand build()
public Mutation mutation()
public String path()
public byte opCode()
public boolean createIntermediaryPath()
public boolean xattr()
public MutationCommandBuilder createIntermediaryPath(boolean createIntermediaryPath)
public MutationCommandBuilder fragment(ByteBuf fragment)
public MutationCommandBuilder xattr(boolean xattr)
Copyright © 2017 Couchbase, Inc.. All rights reserved.