Package | Description |
---|---|
com.couchbase.client.java.subdoc |
Modifier and Type | Method and Description |
---|---|
static SubdocOptionsBuilder |
SubdocOptionsBuilder.builder() |
SubdocOptionsBuilder |
SubdocOptionsBuilder.createParents(boolean createParents)
Deprecated.
Please use
createPath(boolean) instead, this method will be removed
in the next major version. |
SubdocOptionsBuilder |
SubdocOptionsBuilder.createPath(boolean createPath)
Set true/false if the intermediate paths should be created.
|
SubdocOptionsBuilder |
SubdocOptionsBuilder.expandMacros(boolean expandMacros)
Controls whether macros such as ${Mutation.CAS} will be expanded by the server for this field.
|
SubdocOptionsBuilder |
SubdocOptionsBuilder.xattr(boolean xattr)
Set xattr to true to accessing extended attributes, else false.
|
Modifier and Type | Method and Description |
---|---|
<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> AsyncMutateInBuilder |
AsyncMutateInBuilder.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,
SubdocOptionsBuilder optionsBuilder)
Append to an existing array, pushing the value to the back/last position in
the array.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.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,
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> AsyncMutateInBuilder |
AsyncMutateInBuilder.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.arrayInsert(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
Insert into an existing array at a specific position
(denoted in the path, eg.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.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,
SubdocOptionsBuilder optionsBuilder)
Insert multiple values at once in an existing array at a specified position (denoted in the
path, eg.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.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.arrayPrepend(String path,
T value,
SubdocOptionsBuilder optionsBuilder)
Prepend to an existing array, pushing the value to the front/first position in
the array.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.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,
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> AsyncMutateInBuilder |
AsyncMutateInBuilder.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.
|
MutateInBuilder |
MutateInBuilder.counter(String path,
long delta,
SubdocOptionsBuilder optionsBuilder)
Increment/decrement a numerical fragment in a JSON document.
|
AsyncMutateInBuilder |
AsyncMutateInBuilder.counter(String path,
long delta,
SubdocOptionsBuilder optionsBuilder)
Increment/decrement a numerical fragment in a JSON document.
|
LookupInBuilder |
LookupInBuilder.exists(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Check if a value exists inside the document (if it does not, attempting to get the
DocumentFragment.content(int) will raise an error). |
AsyncLookupInBuilder |
AsyncLookupInBuilder.exists(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Check if a value exists inside the document (if it does not, attempting to get the
DocumentFragment.content(int) will raise an error). |
LookupInBuilder |
LookupInBuilder.exists(String path,
SubdocOptionsBuilder optionsBuilder)
Check if a value exists inside the document (if it does not, attempting to get the
DocumentFragment.content(int) will raise an error). |
AsyncLookupInBuilder |
AsyncLookupInBuilder.exists(String path,
SubdocOptionsBuilder optionsBuilder)
Check if a value exists inside the document (if it does not, attempting to get the
DocumentFragment.content(int) will raise an error). |
LookupInBuilder |
LookupInBuilder.get(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Get a value inside the JSON document.
|
AsyncLookupInBuilder |
AsyncLookupInBuilder.get(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Get a value inside the JSON document.
|
LookupInBuilder |
LookupInBuilder.get(String path,
SubdocOptionsBuilder optionsBuilder)
Get a value inside the JSON document.
|
AsyncLookupInBuilder |
AsyncLookupInBuilder.get(String path,
SubdocOptionsBuilder optionsBuilder)
Get a value inside the JSON document.
|
LookupInBuilder |
LookupInBuilder.getCount(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Get a count of values inside the JSON document.
|
AsyncLookupInBuilder |
AsyncLookupInBuilder.getCount(Iterable<String> paths,
SubdocOptionsBuilder optionsBuilder)
Get a value inside the JSON document.
|
LookupInBuilder |
LookupInBuilder.getCount(String path,
SubdocOptionsBuilder optionsBuilder)
Get a count of values inside the JSON document.
|
AsyncLookupInBuilder |
AsyncLookupInBuilder.getCount(String path,
SubdocOptionsBuilder optionsBuilder)
Get the count of values inside the JSON document.
|
<T> MutateInBuilder |
MutateInBuilder.insert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment provided the last element of the path doesn't exists.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.insert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment, provided the last element of the path doesn't exist.
|
<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> AsyncMutateInBuilder |
AsyncMutateInBuilder.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> AsyncMutateInBuilder |
AsyncMutateInBuilder.replace(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Replace an existing value by the given fragment.
|
<T> MutateInBuilder |
MutateInBuilder.upsert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment, replacing the old value if the path exists.
|
<T> AsyncMutateInBuilder |
AsyncMutateInBuilder.upsert(String path,
T fragment,
SubdocOptionsBuilder optionsBuilder)
Insert a fragment, replacing the old value if the path exists.
|
Constructor and Description |
---|
LookupSpec(Lookup type,
String path,
SubdocOptionsBuilder builder) |
MutationSpec(Mutation type,
String path,
Object fragment,
SubdocOptionsBuilder builder) |
Copyright © 2015 Couchbase, Inc.