Package com.couchbase.client.java.kv
Class Upsert
- java.lang.Object
-
- com.couchbase.client.java.kv.MutateInSpec
-
- com.couchbase.client.java.kv.Upsert
-
public class Upsert extends MutateInSpec
An intention to perform a SubDocument upsert operation.- Since:
- 1.0.0
- Author:
- Graham Pople
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Upsert
createPath()
Sets that this parent fields should be created automatically.SubdocMutateRequest.Command
encode(JsonSerializer serializer, int originalIndex)
Upsert
xattr()
Sets that this is an extended attribute (xattr) field.-
Methods inherited from class com.couchbase.client.java.kv.MutateInSpec
arrayAddUnique, arrayAppend, arrayInsert, arrayPrepend, decrement, increment, insert, remove, replace, upsert
-
-
-
-
Method Detail
-
xattr
public Upsert xattr()
Sets that this is an extended attribute (xattr) field.- Returns:
- this, for chaining
-
createPath
public Upsert createPath()
Sets that this parent fields should be created automatically.- Returns:
- this, for chaining
-
encode
public SubdocMutateRequest.Command encode(JsonSerializer serializer, int originalIndex)
- Specified by:
encode
in classMutateInSpec
-
-