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