Package | Description |
---|---|
com.couchbase.client.java | |
com.couchbase.client.java.subdoc |
Modifier and Type | Method and Description |
---|---|
MutateInBuilder |
Bucket.mutateIn(String docId)
Prepare a sub-document mutation through a
builder API . |
MutateInBuilder |
CouchbaseBucket.mutateIn(String docId) |
Modifier and Type | Method and Description |
---|---|
<T> MutateInBuilder |
MutateInBuilder.arrayAddUnique(String path,
T value)
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.arrayAddUnique(String path,
T value,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAddUnique(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
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.arrayAppend(String path,
T value)
Append to an existing array, pushing the value to the back/last position in the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAppend(String path,
T value,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAppend(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
Append to an existing array, pushing the value to the back/last position in the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAppendAll(String path,
Collection<T> values,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAppendAll(String path,
Collection<T> values,
SubdocOptionsBuilder optionsBuilder)
Append multiple values at once in an existing array, pushing all values in the collection’s iteration order to the back/end of the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayAppendAll(String path,
T... values)
Append multiple values at once in an existing array, pushing all values to the back/end of the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayInsert(String path,
T value)
Insert into an existing array at a specific position (denoted in the path, eg.
|
<T> MutateInBuilder |
MutateInBuilder.arrayInsert(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
Insert into an existing array at a specific position (denoted in the path, eg.
|
<T> MutateInBuilder |
MutateInBuilder.arrayInsertAll(String path,
Collection<T> values)
Insert multiple values at once in an existing array at a specified position (denoted in the path, eg.
|
<T> MutateInBuilder |
MutateInBuilder.arrayInsertAll(String path,
Collection<T> values,
SubdocOptionsBuilder optionsBuilder)
Insert multiple values at once in an existing array at a specified position (denoted in the path, eg.
|
<T> MutateInBuilder |
MutateInBuilder.arrayInsertAll(String path,
T... values)
Insert multiple values at once in an existing array at a specified position (denoted in the path, eg.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrepend(String path,
T value)
Prepend to an existing array, pushing the value to the front/first position in the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrepend(String path,
T value,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrepend(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
Prepend to an existing array, pushing the value to the front/first position in the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrependAll(String path,
Collection<T> values,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrependAll(String path,
Collection<T> values,
SubdocOptionsBuilder optionsBuilder)
Prepend multiple values at once in an existing array, pushing all values in the collection’s iteration order to the front/start of the array.
|
<T> MutateInBuilder |
MutateInBuilder.arrayPrependAll(String path,
T... values)
Prepend multiple values at once in an existing array, pushing all values to the front/start of the array.
|
MutateInBuilder |
MutateInBuilder.counter(String path,
long delta)
Increment/decrement a numerical fragment in a JSON document.
|
MutateInBuilder |
MutateInBuilder.counter(String path,
long delta,
boolean createPath)
Deprecated.
|
MutateInBuilder |
MutateInBuilder.counter(String path,
long delta,
SubdocOptionsBuilder optionsBuilder)
Increment/decrement a numerical fragment in a JSON document.
|
MutateInBuilder |
MutateInBuilder.createDocument(boolean createDocument)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.insert(String path,
T fragment)
Insert a fragment provided the last element of the path doesn’t exists.
|
<T> MutateInBuilder |
MutateInBuilder.insert(String path,
T fragment,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.insert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment provided the last element of the path doesn’t exists.
|
MutateInBuilder |
MutateInBuilder.insertDocument(boolean insertDocument)
Set insertDocument to true, if the document has to be created only if it does not exist
|
<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.remove(String path,
SubdocOptionsBuilder optionsBuilder)
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.
|
MutateInBuilder |
MutateInBuilder.upsert(JsonObject content)
Upsert a full JSON document that doesn’t exist.
|
<T> MutateInBuilder |
MutateInBuilder.upsert(String path,
T fragment)
Insert a fragment, replacing the old value if the path exists.
|
<T> MutateInBuilder |
MutateInBuilder.upsert(String path,
T fragment,
boolean createPath)
Deprecated.
|
<T> MutateInBuilder |
MutateInBuilder.upsert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment, replacing the old value if the path exists.
|
MutateInBuilder |
MutateInBuilder.upsertDocument(boolean upsertDocument)
Set upsertDocument to true, if the document has to be created.
|
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.