Package com.couchbase.client.java.subdoc
Class MutationSpec
java.lang.Object
com.couchbase.client.java.subdoc.MutationSpec
@Uncommitted @Private public class MutationSpec extends Object
Internally represents a single mutation in a batch of subdocument mutations.
- Since:
- 2.2
- Author:
- Michael Nitschinger, Simon Baslé
-
Constructor Summary
Constructors Constructor Description MutationSpec(Mutation type, String path, Object fragment)
MutationSpec(Mutation type, String path, Object fragment, boolean createPath)
Deprecated.MutationSpec(Mutation type, String path, Object fragment, SubdocOptionsBuilder builder)
-
Method Summary
-
Constructor Details
-
MutationSpec
Deprecated. -
MutationSpec
-
MutationSpec
-
-
Method Details
-
type
- Returns:
- the
type
of the mutation.
-
path
- Returns:
- the path targeted by the mutation.
-
fragment
- Returns:
- the fragment value to apply as a mutation.
-
createPath
public boolean createPath()- Returns:
- true should the mutation create missing intermediary elements in the path (if it supports it).
-
xattr
public boolean xattr()- Returns:
- true if accessing extended attributes
-
expandMacros
public boolean expandMacros()- Returns:
- true if macros will be expanded for this field
-
toString
-