Package com.couchbase.client.java.kv
Class Replace
- java.lang.Object
-
- com.couchbase.client.java.kv.MutateInSpec
-
- com.couchbase.client.java.kv.Replace
-
public class Replace extends MutateInSpec
An intention to perform a SubDocument replace operation.- Since:
- 1.0.0
- Author:
- Graham Pople
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SubdocMutateRequest.Command
encode(JsonSerializer defaultSerializer)
Replace
expandMacro()
Sets that this contains a macro that should be expanded on the server.Replace
serializer(JsonSerializer serializer)
Deprecated.Replace
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, fullDocument, increment, insert, remove, replace, upsert
-
-
-
-
Method Detail
-
xattr
public Replace xattr()
Sets that this is an extended attribute (xattr) field.- Returns:
- this, for chaining
-
expandMacro
@Internal public Replace expandMacro()
Sets that this contains a macro that should be expanded on the server. For internal use.- Returns:
- this, for chaining
-
serializer
@Deprecated @Internal public Replace serializer(JsonSerializer serializer)
Deprecated.Allows to customize the serializer used to encode the value.- Parameters:
serializer
- the serializer that should be used.- Returns:
- this, for chaining
-
encode
public SubdocMutateRequest.Command encode(JsonSerializer defaultSerializer)
- Specified by:
encode
in classMutateInSpec
-
-