@InterfaceStability.Committed @InterfaceAudience.Public public class SubDictAddRequest extends AbstractSubdocMutationRequest
A sub-document dictionary add operation.
EXCEPTION_EMPTY_PATH, EXCEPTION_NULL_PATH
DEFAULT_PARTITION
Constructor and Description |
---|
SubDictAddRequest(String key,
String path,
ByteBuf fragment,
String bucket)
Creates a new
SubDictAddRequest . |
SubDictAddRequest(String key,
String path,
ByteBuf fragment,
String bucket,
int expiration,
long cas)
Creates a new
SubDictAddRequest . |
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
afterSpanSet, key, keyBytes, opaque, operationId, partition, partition
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
content, path, pathLength
key, keyBytes, opaque, partition, partition
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, operationId, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
creationTime
public SubDictAddRequest(String key, String path, ByteBuf fragment, String bucket)
Creates a new SubDictAddRequest
.
key
- the key of the document.path
- the subdocument path to consider inside the document. Last element of the path is expected to be created by this operation.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
)public SubDictAddRequest(String key, String path, ByteBuf fragment, String bucket, int expiration, long cas)
Creates a new SubDictAddRequest
.
key
- the key of the document.path
- the subdocument path to consider inside the document. Last element of the path is expected to be created by this operation.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 mutation.NullPointerException
- if the path is null (see AbstractSubdocRequest.EXCEPTION_NULL_PATH
)IllegalArgumentException
- if the path is empty (see AbstractSubdocRequest.EXCEPTION_EMPTY_PATH
)Copyright © 2018 Couchbase, Inc.. All rights reserved.