@InterfaceStability.Experimental @InterfaceAudience.Public public class SubCounterRequest extends AbstractSubdocMutationRequest
A sub-document counter operation.
EXCEPTION_EMPTY_PATH, EXCEPTION_NULL_PATHDEFAULT_PARTITION| Constructor and Description |
|---|
SubCounterRequest(String key,
String path,
long delta,
String bucket)
Creates a new
SubCounterRequest. |
SubCounterRequest(String key,
String path,
long delta,
String bucket,
int expiration,
long cas)
Creates a new
SubCounterRequest. |
| 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 SubCounterRequest(String key, String path, long delta, String bucket, int expiration, long cas)
Creates a new SubCounterRequest.
key - the key of the document.path - the subdocument path to consider inside the document. If the last element doesn’t exist it will be created, and delta will be applied as if it was 0.delta - the negative or positive value to add to the integer value at 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 SubCounterRequest(String key, String path, long delta, String bucket)
Creates a new SubCounterRequest.
key - the key of the document.path - the subdocument path to consider inside the document. If the last element doesn’t exist it will be created, and delta will be applied as if it was 0.delta - the negative or positive value to add to the integer value at 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 © 2016 Couchbase, Inc.. All rights reserved.