Package com.couchbase.client.java.kv
Class Increment
- java.lang.Object
-
- com.couchbase.client.java.kv.MutateInSpec
-
- com.couchbase.client.java.kv.Increment
-
public class Increment extends MutateInSpec
An intention to perform a SubDocument increment operation.- Since:
- 1.0.0
- Author:
- Graham Pople
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Increment
createPath()
Sets that this parent fields should be created automatically.com.couchbase.client.core.api.kv.CoreSubdocMutateCommand
toCore(JsonSerializer serializer)
Internal operation called from the encoding side that encodes the spec into its internal representation.Increment
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 Increment xattr()
Sets that this is an extended attribute (xattr) field.- Returns:
- this, for chaining
-
createPath
public Increment createPath()
Sets that this parent fields should be created automatically.- Returns:
- this, for chaining
-
toCore
public com.couchbase.client.core.api.kv.CoreSubdocMutateCommand toCore(JsonSerializer serializer)
Description copied from class:MutateInSpec
Internal operation called from the encoding side that encodes the spec into its internal representation.- Specified by:
toCore
in classMutateInSpec
- Parameters:
serializer
- the serializer that should be used.- Returns:
- the encoded command.
-
-