@InterfaceStability.Committed @InterfaceAudience.Public public class SubReplaceRequest extends AbstractSubdocMutationRequest
A sub-document replace operation.
EXCEPTION_EMPTY_PATH, EXCEPTION_NULL_PATH
DEFAULT_PARTITION
Constructor and Description |
---|
SubReplaceRequest(String key,
String path,
ByteBuf fragment,
String bucket)
Creates a new
SubReplaceRequest . |
SubReplaceRequest(String key,
String path,
ByteBuf fragment,
String bucket,
int expiration,
long cas)
Creates a new
SubReplaceRequest . |
Modifier and Type | Method and Description |
---|---|
byte |
opcode() |
cas, createDocument, createDocument, createIntermediaryPath, createIntermediaryPath, expiration, fragment, insertDocument, insertDocument, upsertDocument, upsertDocument, xattr, xattr
cleanUpAndThrow, content, createContent, path, pathLength
key, keyBytes, opaque, partition, partition
bucket, creationTime, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
content, path, pathLength
key, keyBytes, opaque, partition, partition
bucket, dispatchHostname, dispatchHostname, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, username
creationTime
public SubReplaceRequest(String key, String path, ByteBuf fragment, String bucket, int expiration, long cas)
Creates a new SubReplaceRequest
.
key
- the key of the document.path
- the subdocument path to consider inside the document.fragment
- the fragment of valid JSON to mutate into at the site denoted by the path.bucket
- the bucket of the document.expiration
- the TTL of the whole enclosing document.cas
- the cas value for the operationNullPointerException
- if the path is null (see AbstractSubdocRequest.EXCEPTION_NULL_PATH
)IllegalArgumentException
- if the path is empty (see AbstractSubdocRequest.EXCEPTION_EMPTY_PATH
)public SubReplaceRequest(String key, String path, ByteBuf fragment, String bucket)
Creates a new SubReplaceRequest
.
key
- the key of the document.path
- the subdocument path to consider inside the document.fragment
- the fragment of valid JSON to mutate into at the site denoted by the path.bucket
- the bucket of the document.NullPointerException
- if the path is null (see AbstractSubdocRequest.EXCEPTION_NULL_PATH
)IllegalArgumentException
- if the path is empty (see AbstractSubdocRequest.EXCEPTION_EMPTY_PATH
)Copyright © 2017 Couchbase, Inc.. All rights reserved.