Package | Description |
---|---|
com.couchbase.client.java.document.subdoc | |
com.couchbase.client.java.error.subdoc |
Modifier and Type | Method and Description |
---|---|
static <T> MutationSpec |
MutationSpec.addUnique(String path,
T value,
boolean createParents)
Creates a
MutationSpec to insert a value in an existing array only if the value isn’t already contained in the array (by way of string comparison). |
static <T> MutationSpec |
MutationSpec.arrayInsert(String path,
T value)
Creates a
MutationSpec to insert into an existing array at a specific position (denoted in the path, eg. |
static MutationSpec<Long> |
MutationSpec.counter(String path,
long delta,
boolean createParents)
Creates a
MutationSpec to increment/decrement a numerical fragment in a JSON document. |
static <T> MutationSpec |
MutationSpec.extend(String path,
T value,
ExtendDirection direction,
boolean createParents)
Creates a
MutationSpec to extend an existing array, prepending or appending the value depending on the given direction. |
static <T> MutationSpec |
MutationSpec.insert(String path,
T fragment,
boolean createParents)
Creates a
MutationSpec to insert a fragment provided the last element of the path doesn’t exists. |
static <T> MutationSpec |
MutationSpec.remove(String path)
Creates a
MutationSpec to remove an entry in a JSON document (scalar, array element, dictionary entry, whole array or dictionary, depending on the path). |
static <T> MutationSpec |
MutationSpec.replace(String path,
T fragment)
Creates a
MutationSpec to replace an existing value by the fragment. |
static <T> MutationSpec |
MutationSpec.upsert(String path,
T fragment,
boolean createParents)
Creates a
MutationSpec to insert a fragment, replacing the old value if the path exists. |
Modifier and Type | Method and Description |
---|---|
MutationSpec |
MultiMutationException.firstFailureSpec() |
Modifier and Type | Method and Description |
---|---|
List<MutationSpec> |
MultiMutationException.originalSpec() |
Constructor and Description |
---|
MultiMutationException(int index,
ResponseStatus errorStatus,
List<MutationSpec> originalSpec,
CouchbaseException errorException) |
Copyright © 2015 Couchbase, Inc.