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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createPath()
boolean
expandMacros()
Object
fragment()
String
path()
String
toString()
Mutation
type()
boolean
xattr()
-
-
-
Constructor Detail
-
MutationSpec
@Deprecated public MutationSpec(Mutation type, String path, Object fragment, boolean createPath)
Deprecated.
-
MutationSpec
public MutationSpec(Mutation type, String path, Object fragment, SubdocOptionsBuilder builder)
-
-
Method Detail
-
path
public String path()
- Returns:
- the path targeted by the mutation.
-
fragment
public Object 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
-
-