@InterfaceStability.Committed @InterfaceAudience.Public public class MutationCommandBuilder extends Object
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) |
boolean |
expandMacros() |
MutationCommandBuilder |
expandMacros(boolean expandMacros) |
MutationCommandBuilder |
fragment(ByteBuf fragment) |
Mutation |
mutation() |
byte |
opCode() |
String |
path() |
boolean |
xattr() |
MutationCommandBuilder |
xattr(boolean xattr) |
public MutationCommandBuilder(Mutation mutation, String path)
mutation
- the mutation type.path
- the path to mutate inside the document.public MutationCommandBuilder(Mutation mutation, String path, ByteBuf fragment)
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 boolean expandMacros()
public MutationCommandBuilder createIntermediaryPath(boolean createIntermediaryPath)
public MutationCommandBuilder fragment(ByteBuf fragment)
public MutationCommandBuilder xattr(boolean xattr)
public MutationCommandBuilder expandMacros(boolean expandMacros)
Copyright © 2021 Couchbase, Inc.. All rights reserved.