@InterfaceStability.Experimental @InterfaceAudience.Public public class SubDictUpsertRequest extends AbstractSubdocMutationRequest
A sub-document dictionnary upsert operation.
EXCEPTION_EMPTY_PATH, EXCEPTION_NULL_PATHDEFAULT_PARTITION| Constructor and Description |
|---|
SubDictUpsertRequest(String key,
String path,
ByteBuf fragment,
String bucket)
Creates a new
SubDictUpsertRequest. |
SubDictUpsertRequest(String key,
String path,
ByteBuf fragment,
String bucket,
int expiration,
long cas)
Creates a new
SubDictUpsertRequest. |
| Modifier and Type | Method and Description |
|---|---|
byte |
opcode() |
cas, createIntermediaryPath, createIntermediaryPath, expiration, fragmentcleanUpAndThrow, content, createContent, path, pathLengthkey, keyBytes, opaque, partition, partitionbucket, creationTime, incrementRetryCount, observable, password, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontent, path, pathLengthkey, keyBytes, opaque, partition, partitionbucket, incrementRetryCount, observable, passwordcreationTimepublic SubDictUpsertRequest(String key, String path, ByteBuf fragment, String bucket)
Creates a new SubDictUpsertRequest.
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)public SubDictUpsertRequest(String key, String path, ByteBuf fragment, String bucket, int expiration, long cas)
Creates a new SubDictUpsertRequest.
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.NullPointerException - if the path is null (see AbstractSubdocRequest.EXCEPTION_NULL_PATH)IllegalArgumentException - if the path is empty (see AbstractSubdocRequest.EXCEPTION_EMPTY_PATH)Copyright © 2016 Couchbase, Inc.. All rights reserved.