Package com.couchbase.client.java.subdoc
Class SubdocOptionsBuilder
java.lang.Object
com.couchbase.client.java.subdoc.SubdocOptionsBuilder
@Committed @Public public class SubdocOptionsBuilder extends Object
Sub-document options builder. Options supported are
createParents
xattr
- Since:
- 2.4.2
- Author:
- Subhashni Balakrishnan
-
Constructor Summary
Constructors Constructor Description SubdocOptionsBuilder() -
Method Summary
Modifier and Type Method Description static SubdocOptionsBuilderbuilder()booleancreateParents()Deprecated.SubdocOptionsBuildercreateParents(boolean createParents)Deprecated.Please usecreatePath(boolean)instead, this method will be removed in the next major version.booleancreatePath()Returns true if the intermediate paths should be created.SubdocOptionsBuildercreatePath(boolean createPath)Set true/false if the intermediate paths should be created.booleanexpandMacros()Get whether macros will be expanded for this field.SubdocOptionsBuilderexpandMacros(boolean expandMacros)Controls whether macros such as ${Mutation.CAS} will be expanded by the server for this field.StringtoString()booleanxattr()Get xattr value set on builderSubdocOptionsBuilderxattr(boolean xattr)Set xattr to true to accessing extended attributes, else false.
-
Constructor Details
-
SubdocOptionsBuilder
public SubdocOptionsBuilder()
-
-
Method Details
-
builder
-
createParents
Deprecated.Please usecreatePath(boolean)instead, this method will be removed in the next major version.Set createParents to true to create missing intermediary nodes, else false. -
createPath
Set true/false if the intermediate paths should be created.- Parameters:
createPath- true if they should be created, false otherwise.- Returns:
- this builder for chaining purposes.
-
createParents
Deprecated.Please usecreatePath()instead, this method will be removed in the next major version.Get createParents value set on builder -
createPath
public boolean createPath()Returns true if the intermediate paths should be created.- Returns:
- true if they should be created.
-
xattr
Set xattr to true to accessing extended attributes, else false. -
xattr
public boolean xattr()Get xattr value set on builder -
expandMacros
Controls whether macros such as ${Mutation.CAS} will be expanded by the server for this field. Default is false. -
expandMacros
Get whether macros will be expanded for this field. -
toString
-
createPath()instead, this method will be removed in the next major version.