Package | Description |
---|---|
com.couchbase.client.java | |
com.couchbase.client.java.query | |
com.couchbase.client.java.query.core | |
com.couchbase.client.java.util.rawQuerying |
Modifier and Type | Method and Description |
---|---|
N1qlQueryResult |
CouchbaseCluster.query(N1qlQuery query) |
N1qlQueryResult |
CouchbaseBucket.query(N1qlQuery query) |
rx.Observable<AsyncN1qlQueryResult> |
CouchbaseAsyncCluster.query(N1qlQuery query) |
rx.Observable<AsyncN1qlQueryResult> |
CouchbaseAsyncBucket.query(N1qlQuery query) |
N1qlQueryResult |
Cluster.query(N1qlQuery query)
Synchronously perform a N1QL query that can span multiple buckets, with the default
timeout . |
N1qlQueryResult |
Bucket.query(N1qlQuery query)
Queries a N1QL secondary index with the
default query timeout . |
rx.Observable<AsyncN1qlQueryResult> |
AsyncCluster.query(N1qlQuery query)
Asynchronously perform a N1QL query that can span multiple buckets.
|
rx.Observable<AsyncN1qlQueryResult> |
AsyncBucket.query(N1qlQuery query)
Queries a N1QL secondary index.
|
N1qlQueryResult |
CouchbaseCluster.query(N1qlQuery query,
long timeout,
TimeUnit timeUnit) |
N1qlQueryResult |
CouchbaseBucket.query(N1qlQuery query,
long timeout,
TimeUnit timeUnit) |
N1qlQueryResult |
Cluster.query(N1qlQuery query,
long timeout,
TimeUnit timeUnit)
Synchronously perform a N1QL query that can span multiple buckets, with a custom timeout.
|
N1qlQueryResult |
Bucket.query(N1qlQuery query,
long timeout,
TimeUnit timeUnit)
Queries a N1QL secondary index with a custom timeout.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractN1qlQuery
An abstract base for N1QL
N1qlQuery . |
class |
ParameterizedN1qlQuery
Represent a N1QL with an optionally parameterized statement (in which case the values must be passed according to the type and number of placeholders).
|
class |
PreparedN1qlQuery
Represent a N1QL query, with a parameterized prepared statement plan (for which the values must be passed according to the type and number of placeholders).
|
class |
SimpleN1qlQuery
|
Modifier and Type | Method and Description |
---|---|
protected rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.dispatchPrepared(N1qlQuery query) |
rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.execute(N1qlQuery query) |
protected rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.executePrepared(N1qlQuery query,
PreparedPayload payload)
Issues a proper N1QL EXECUTE, detecting if parameters must be added to it.
|
protected rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.executeQuery(N1qlQuery query)
Internal: Queries a N1QL secondary index.
|
protected rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.prepareAndExecute(N1qlQuery query)
Issues a N1QL PREPARE, puts the plan in cache then EXECUTE it.
|
protected rx.Observable<AsyncN1qlQueryResult> |
N1qlQueryExecutor.retryPrepareAndExecuteOnce(Throwable error,
N1qlQuery query)
In case the error warrants a retry, issue a PREPARE, followed by an update of the cache and an EXECUTE.
|
Modifier and Type | Method and Description |
---|---|
JsonObject |
RawQueryExecutor.n1qlToJsonObject(N1qlQuery query)
Synchronously perform a
N1qlQuery and return the raw N1QL response as a JsonObject . |
rx.Observable<JsonObject> |
AsyncRawQueryExecutor.n1qlToJsonObject(N1qlQuery query)
Asynchronously perform a
N1qlQuery and return the raw N1QL response as a JsonObject . |
<T> T |
RawQueryExecutor.n1qlToRawCustom(N1qlQuery query,
rx.functions.Func1<TranscoderUtils.ByteBufToArray,T> deserializer)
Synchronously perform a
N1qlQuery and apply a user function to deserialize the raw N1QL response, which is represented as a TranscoderUtils.ByteBufToArray . |
<T> rx.Observable<T> |
AsyncRawQueryExecutor.n1qlToRawCustom(N1qlQuery query,
rx.functions.Func1<TranscoderUtils.ByteBufToArray,T> deserializer)
Asynchronously perform a
N1qlQuery and apply a user function to deserialize the raw N1QL response, which is represented as a TranscoderUtils.ByteBufToArray . |
String |
RawQueryExecutor.n1qlToRawJson(N1qlQuery query)
Synchronously perform a
N1qlQuery and return the raw N1QL response as a String. |
rx.Observable<String> |
AsyncRawQueryExecutor.n1qlToRawJson(N1qlQuery query)
Asynchronously perform a
N1qlQuery and return the raw N1QL response as a String. |
Copyright © 2015 Couchbase, Inc.