Package | Description |
---|---|
com.couchbase.client.java | |
com.couchbase.client.java.subdoc |
Modifier and Type | Method and Description |
---|---|
AsyncMutateInBuilder |
CouchbaseAsyncBucket.mutateIn(String docId) |
AsyncMutateInBuilder |
AsyncBucket.mutateIn(String docId)
Prepare a sub-document mutation through a
builder API . |
Modifier and Type | Method and Description |
---|---|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.addUnique(String path,
T value,
boolean createParents)
Insert a value in an existing array only if the value isn’t already contained in the array (by way of string comparison).
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.arrayInsert(String path,
T value)
Insert into an existing array at a specific position (denoted in the path, eg.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.counter(String path,
long delta,
boolean createParents)
Increment/decrement a numerical fragment in a JSON document.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.insert(String path,
T fragment,
boolean createParents)
Insert a fragment provided the last element of the path doesn’t exists,
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.pushBack(String path,
T value,
boolean createParents)
Push to the back of an existing array, appending the value.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.pushFront(String path,
T value,
boolean createParents)
Push to the front of an existing array, prepending the value.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.remove(String path)
Remove an entry in a JSON document (scalar, array element, dictionary entry, whole array or dictionary, depending on the path).
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.replace(String path,
T fragment)
Replace an existing value by the given fragment.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.upsert(String path,
T fragment,
boolean createParents)
Insert a fragment, replacing the old value if the path exists.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.withCas(long cas)
Apply the whole mutation using optimistic locking, checking against the provided CAS value.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.withDurability(PersistTo persistTo)
Set a persistence durability constraint for the whole mutation.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.withDurability(PersistTo persistTo,
ReplicateTo replicateTo)
Set both a persistence and a replication durability constraints for the whole mutation.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.withDurability(ReplicateTo replicateTo)
Set a replication durability constraint for the whole mutation.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.withExpiry(int expiry)
Change the expiry of the enclosing document as part of the mutation.
|
Constructor and Description |
---|
MutateInBuilder(AsyncMutateInBuilder asyncBuilder,
long defaultTimeout,
TimeUnit defaultTimeUnit)
Instances of this builder should be obtained through
Bucket.mutateIn(String) rather than directly constructed. |
Copyright © 2015 Couchbase, Inc.