@InterfaceStability.Experimental @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 |
---|---|
boolean |
attributeAccess() |
MutationCommandBuilder |
attributeAccess(boolean attributeAccess) |
MutationCommand |
build() |
boolean |
createIntermediaryPath() |
MutationCommandBuilder |
createIntermediaryPath(boolean createIntermediaryPath) |
MutationCommandBuilder |
fragment(ByteBuf fragment) |
Mutation |
mutation() |
byte |
opCode() |
String |
path() |
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 attributeAccess()
public MutationCommandBuilder createIntermediaryPath(boolean createIntermediaryPath)
public MutationCommandBuilder fragment(ByteBuf fragment)
public MutationCommandBuilder attributeAccess(boolean attributeAccess)
Copyright © 2017 Couchbase, Inc.. All rights reserved.