Package | Description |
---|---|
com.couchbase.client.java.analytics | |
com.couchbase.client.java.document | |
com.couchbase.client.java.document.json | |
com.couchbase.client.java.query | |
com.couchbase.client.java.query.dsl | |
com.couchbase.client.java.query.dsl.functions |
Functions are
Expressions that represent predefined utility
functions in N1QL. |
com.couchbase.client.java.query.dsl.path | |
com.couchbase.client.java.query.util | |
com.couchbase.client.java.transcoder | |
com.couchbase.client.java.view |
Modifier and Type | Method and Description |
---|---|
static ParameterizedAnalyticsQuery |
AnalyticsQuery.parameterized(String statement,
JsonArray positionalParams)
Creates an
AnalyticsQuery with positional parameters as part of the query. |
static ParameterizedAnalyticsQuery |
AnalyticsQuery.parameterized(String statement,
JsonArray positionalParams,
AnalyticsParams params)
Creates an
AnalyticsQuery with positional parameters as part of the query. |
Modifier and Type | Method and Description |
---|---|
static JsonArrayDocument |
JsonArrayDocument.create(String id,
int expiry,
JsonArray content)
Creates a
JsonDocument which the document id, JSON content and the expiration time. |
static JsonArrayDocument |
JsonArrayDocument.create(String id,
int expiry,
JsonArray content,
long cas)
Creates a
JsonDocument which the document id, JSON content, CAS value, expiration time and status code. |
static JsonArrayDocument |
JsonArrayDocument.create(String id,
int expiry,
JsonArray content,
long cas,
MutationToken mutationToken)
Creates a
JsonDocument which the document id, JSON content, CAS value, expiration time and status code. |
static JsonArrayDocument |
JsonArrayDocument.create(String id,
JsonArray content)
Creates a
JsonDocument which the document id and JSON content. |
static JsonArrayDocument |
JsonArrayDocument.create(String id,
JsonArray content,
long cas)
Creates a
JsonDocument which the document id, JSON content and the CAS value. |
static JsonArrayDocument |
JsonArrayDocument.from(JsonArrayDocument doc,
JsonArray content)
Creates a copy from a different
JsonDocument , but changes the content. |
static JsonArrayDocument |
JsonArrayDocument.from(JsonArrayDocument doc,
String id,
JsonArray content)
Creates a copy from a different
JsonDocument , but changes the document ID and content. |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(boolean value)
|
JsonArray |
JsonArray.add(double value)
|
JsonArray |
JsonArray.add(int value)
|
JsonArray |
JsonArray.add(JsonArray value)
|
JsonArray |
JsonArray.add(JsonObject value)
Append an
JsonObject element to the JsonArray . |
JsonArray |
JsonArray.add(List<?> value)
|
JsonArray |
JsonArray.add(long value)
|
JsonArray |
JsonArray.add(Map<String,?> value)
|
JsonArray |
JsonArray.add(Number value)
|
JsonArray |
JsonArray.add(Object value)
Append an element to the
JsonArray . |
JsonArray |
JsonArray.add(String value)
|
JsonArray |
JsonArray.addNull()
Append a null element to the
JsonArray . |
static JsonArray |
JsonArray.create()
Creates a empty
JsonArray . |
static JsonArray |
JsonArray.empty()
Creates a empty
JsonArray . |
static JsonArray |
JsonArray.from(List<?> items)
|
static JsonArray |
JsonArray.from(Object... items)
Creates a new
JsonArray and populates it with the values supplied. |
static JsonArray |
JsonArray.fromJson(String s)
|
JsonArray |
JsonObject.getAndDecryptArray(String name,
String providerName)
Retrieves the decrypted value from the field name and casts it to
JsonArray . |
JsonArray |
JsonArray.getArray(int index)
|
JsonArray |
JsonObject.getArray(String name)
Retrieves the value from the field name and casts it to
JsonArray . |
static JsonArray |
JsonValue.ja()
Static factory method to create an empty
JsonArray . |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArray.add(JsonArray value)
|
JsonObject |
JsonObject.put(String name,
JsonArray value)
Stores a
JsonArray value identified by the field name. |
JsonObject |
JsonObject.putAndEncrypt(String name,
JsonArray value,
String providerName)
Stores a
JsonArray value as encrypted identified by the field name. |
Modifier and Type | Method and Description |
---|---|
static ParameterizedN1qlQuery |
N1qlQuery.parameterized(Statement statement,
JsonArray positionalParams)
Create a new query with positional parameters.
|
static ParameterizedN1qlQuery |
N1qlQuery.parameterized(Statement statement,
JsonArray positionalParams,
N1qlParams params)
Create a new query with positionalParameters.
|
static ParameterizedN1qlQuery |
N1qlQuery.parameterized(String statement,
JsonArray positionalParams)
Create a new query with positionalParameters.
|
static ParameterizedN1qlQuery |
N1qlQuery.parameterized(String statement,
JsonArray positionalParams,
N1qlParams params)
Create a new query with positionalParameters.
|
Constructor and Description |
---|
PreparedN1qlQuery(PreparedPayload plan,
JsonArray positionalParams,
N1qlParams params) |
Modifier and Type | Method and Description |
---|---|
Expression |
Expression.and(JsonArray right)
AND-combines two expressions.
|
Expression |
Expression.between(JsonArray right)
Adds a BETWEEN clause between the current and the given expression.
|
Expression |
Expression.concat(JsonArray right)
Combines two expressions with the concatenation operator ("||").
|
Expression |
Expression.eq(JsonArray right)
Combines two expressions with the equals operator ("=").
|
Expression |
Expression.gt(JsonArray right)
Combines two expressions with the greater than operator (">").
|
Expression |
Expression.gte(JsonArray right)
Combines two expressions with the greater or equals than operator (">=").
|
Expression |
Expression.in(JsonArray right)
Adds a IN clause between the current and the given expression.
|
Expression |
Expression.like(JsonArray right)
Adds a LIKE clause between the current and the given expression.
|
Expression |
Expression.lt(JsonArray right)
Combines two expressions with the less than operator ("<").
|
Expression |
Expression.lte(JsonArray right)
Combines two expressions with the less or equals than operator ("<=").
|
Expression |
Expression.ne(JsonArray right)
Combines two expressions with the not equals operator ("!=").
|
Expression |
Expression.notBetween(JsonArray right)
Adds a NOT BETWEEN clause between the current and the given expression.
|
Expression |
Expression.notIn(JsonArray right)
Adds a NOT IN clause between the current and the given expression.
|
Expression |
Expression.notLike(JsonArray right)
Adds a NOT LIKE clause between the current and the given expression.
|
Expression |
Expression.or(JsonArray right)
OR-combines two expressions.
|
static Expression |
Expression.x(JsonArray value)
Creates an arbitrary expression from the given json array.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
ArrayFunctions.arrayAppend(JsonArray array,
Expression value)
Returned expression results in new array with value appended.
|
static Expression |
ArrayFunctions.arrayAvg(JsonArray array)
Returned expression results in arithmetic mean (average) of all the non-NULL number values in the array,
or NULL if there are no such values.
|
static Expression |
ArrayFunctions.arrayConcat(JsonArray array1,
JsonArray array2)
Returned expression results in new array with the concatenation of the input arrays.
|
static Expression |
ArrayFunctions.arrayContains(JsonArray array,
Expression value)
Returned expression results in true if the array contains value.
|
static Expression |
ArrayFunctions.arrayCount(JsonArray array)
Returned expression results in count of all the non-NULL values in the array, or zero if there are no such values.
|
static Expression |
ArrayFunctions.arrayDistinct(JsonArray array)
Returned expression results in new array with distinct elements of input array.
|
static Expression |
ArrayFunctions.arrayIfNull(JsonArray array)
Returned expression results in the first non-NULL value in the array, or NULL.
|
static Expression |
ArrayFunctions.arrayLength(JsonArray array)
Returned expression results in the number of elements in the array.
|
static Expression |
ArrayFunctions.arrayMax(JsonArray array)
Returned expression results in the largest non-NULL, non-MISSING array element, in N1QL collation order.
|
static Expression |
ArrayFunctions.arrayMin(JsonArray array)
Returned expression results in the smallest non-NULL, non-MISSING array element, in N1QL collation order.
|
static Expression |
ArrayFunctions.arrayPosition(JsonArray array,
Expression value)
Returned expression results in the first position of value within the array, or -1.
|
static Expression |
ArrayFunctions.arrayPrepend(JsonArray array,
Expression value)
Returned expression results in the new array with value pre-pended.
|
static Expression |
ArrayFunctions.arrayPut(JsonArray array,
Expression value)
Returned expression results in new array with value appended, if value is not already present,
otherwise the unmodified input array.
|
static Expression |
ArrayFunctions.arrayRemove(JsonArray array,
Expression value)
Returned expression results in new array with all occurrences of value removed.
|
static Expression |
ArrayFunctions.arrayReplace(JsonArray array,
Expression value1,
Expression value2)
Returned expression results in new array with all occurrences of value1 replaced by value2.
|
static Expression |
ArrayFunctions.arrayReplace(JsonArray array,
Expression value1,
Expression value2,
long n)
Returned expression results in new array with at most n occurrences of value1 replaced with value2.
|
static Expression |
ArrayFunctions.arrayReverse(JsonArray array)
Returned expression results in new array with all elements in reverse order.
|
static Expression |
ArrayFunctions.arraySort(JsonArray array)
Returned expression results in new array with elements sorted in N1QL collation order.
|
static Expression |
ArrayFunctions.arraySum(JsonArray array)
Returned expression results in the sum of all the non-NULL number values in the array,
or zero if there are no such values.
|
Modifier and Type | Method and Description |
---|---|
LetPath |
DefaultKeysPath.onKeys(JsonArray keys) |
LetPath |
KeysPath.onKeys(JsonArray keys)
the on-key clause of a join/nest/unnest clause
with an array of constant keys (eg.
|
MergeUpdateSetPath |
MergeUpdateSetOrUnsetPath.set(Expression path,
JsonArray value) |
UpdateSetPath |
UpdateSetPath.set(Expression path,
JsonArray value) |
UpdateSetPath |
UpdateSetOrUnsetPath.set(Expression path,
JsonArray value) |
MergeUpdateSetPath |
DefaultMergeUpdateSetOrUnsetPath.set(Expression path,
JsonArray value) |
MergeUpdateSetPath |
DefaultMergeUpdateSetPath.set(Expression path,
JsonArray value) |
UpdateSetPath |
DefaultUpdateSetOrUnsetPath.set(Expression path,
JsonArray value) |
MergeUpdateSetPath |
MergeUpdateSetPath.set(Expression path,
JsonArray value) |
UpdateSetPath |
DefaultUpdateSetPath.set(Expression path,
JsonArray value) |
MergeUpdateSetPath |
MergeUpdateSetOrUnsetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
UpdateSetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
UpdateSetOrUnsetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
DefaultMergeUpdateSetOrUnsetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
DefaultMergeUpdateSetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
DefaultUpdateSetOrUnsetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
MergeUpdateSetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
DefaultUpdateSetPath.set(Expression path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
MergeUpdateSetOrUnsetPath.set(String path,
JsonArray value) |
UpdateSetPath |
UpdateSetPath.set(String path,
JsonArray value) |
UpdateSetPath |
UpdateSetOrUnsetPath.set(String path,
JsonArray value) |
MergeUpdateSetPath |
DefaultMergeUpdateSetOrUnsetPath.set(String path,
JsonArray value) |
MergeUpdateSetPath |
DefaultMergeUpdateSetPath.set(String path,
JsonArray value) |
UpdateSetPath |
DefaultUpdateSetOrUnsetPath.set(String path,
JsonArray value) |
MergeUpdateSetPath |
MergeUpdateSetPath.set(String path,
JsonArray value) |
UpdateSetPath |
DefaultUpdateSetPath.set(String path,
JsonArray value) |
MergeUpdateSetPath |
MergeUpdateSetOrUnsetPath.set(String path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
UpdateSetPath.set(String path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
UpdateSetOrUnsetPath.set(String path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
DefaultMergeUpdateSetOrUnsetPath.set(String path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
DefaultMergeUpdateSetPath.set(String path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
DefaultUpdateSetOrUnsetPath.set(String path,
JsonArray value,
Expression updateFor) |
MergeUpdateSetPath |
MergeUpdateSetPath.set(String path,
JsonArray value,
Expression updateFor) |
UpdateSetPath |
DefaultUpdateSetPath.set(String path,
JsonArray value,
Expression updateFor) |
UpdateSetOrUnsetPath |
DefaultUpdateUsePath.useKeys(JsonArray keys) |
LetPath |
DefaultKeysPath.useKeys(JsonArray keys) |
MutateWherePath |
DefaultDeleteUsePath.useKeys(JsonArray keys) |
MutateWherePath |
DeleteUsePath.useKeys(JsonArray keys) |
UpdateSetOrUnsetPath |
UpdateUsePath.useKeys(JsonArray keys) |
LetPath |
KeysPath.useKeys(JsonArray keys)
use the primary keyspace (doc id) in a join clause)
|
InsertValuesPath |
DefaultInitialInsertPath.values(Expression id,
JsonArray value) |
InsertValuesPath |
InsertValuesPath.values(Expression id,
JsonArray value) |
InsertValuesPath |
DefaultInsertValuesPath.values(Expression id,
JsonArray value) |
InsertValuesPath |
InitialInsertPath.values(Expression id,
JsonArray value) |
InsertValuesPath |
DefaultInitialInsertPath.values(String id,
JsonArray value) |
InsertValuesPath |
InsertValuesPath.values(String id,
JsonArray value) |
InsertValuesPath |
DefaultInsertValuesPath.values(String id,
JsonArray value) |
InsertValuesPath |
InitialInsertPath.values(String id,
JsonArray value) |
Modifier and Type | Method and Description |
---|---|
JsonArray |
IndexInfo.indexKey()
Return an
array of Strings that represent the index key(s). |
Modifier and Type | Method and Description |
---|---|
JsonArray |
JsonArrayTranscoder.byteBufToJsonArray(com.couchbase.client.deps.io.netty.buffer.ByteBuf input) |
JsonArray |
JsonArrayTranscoder.stringToJsonArray(String input) |
Modifier and Type | Method and Description |
---|---|
com.couchbase.client.deps.io.netty.buffer.ByteBuf |
JsonArrayTranscoder.jsonArrayToByteBuf(JsonArray input) |
String |
JsonArrayTranscoder.jsonArrayToString(JsonArray input) |
JsonArrayDocument |
JsonArrayTranscoder.newDocument(String id,
int expiry,
JsonArray content,
long cas) |
JsonArrayDocument |
JsonArrayTranscoder.newDocument(String id,
int expiry,
JsonArray content,
long cas,
MutationToken mutationToken) |
Modifier and Type | Method and Description |
---|---|
JsonArray |
DefaultAsyncSpatialViewRow.key() |
JsonArray |
SpatialViewRow.key()
The key of the row index.
|
JsonArray |
AsyncSpatialViewRow.key()
The key of the row.
|
JsonArray |
DefaultSpatialViewRow.key() |
Modifier and Type | Method and Description |
---|---|
ViewQuery |
ViewQuery.endKey(JsonArray key) |
SpatialViewQuery |
SpatialViewQuery.endRange(JsonArray endRange) |
ViewQuery |
ViewQuery.key(JsonArray key) |
ViewQuery |
ViewQuery.keys(JsonArray keys) |
SpatialViewQuery |
SpatialViewQuery.range(JsonArray startRange,
JsonArray endRange) |
ViewQuery |
ViewQuery.startKey(JsonArray key) |
SpatialViewQuery |
SpatialViewQuery.startRange(JsonArray startRange) |
Constructor and Description |
---|
DefaultAsyncSpatialViewRow(AsyncBucket bucket,
String id,
JsonArray key,
Object value,
JsonObject geometry,
Document<?> document) |
Copyright © 2015 Couchbase, Inc.