Package | Description |
---|---|
com.couchbase.client.java |
Holds all classes that are needed for the Couchbase Java SDK.
|
com.couchbase.client.java.query |
Namespace for various query-service related classes.
|
Modifier and Type | Method and Description |
---|---|
Mono<ReactiveQueryResult> |
ReactiveScope.query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions in a Scope |
QueryResult |
Scope.query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions in a Scope |
CompletableFuture<QueryResult> |
AsyncScope.query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions in a Scope. |
Mono<ReactiveQueryResult> |
ReactiveCluster.query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions . |
CompletableFuture<QueryResult> |
AsyncCluster.query(String statement,
QueryOptions options)
Performs a N1QL query with custom
QueryOptions . |
QueryResult |
Cluster.query(String statement,
QueryOptions options)
Performs a query against the query (N1QL) services with custom options.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions |
QueryOptions.adhoc(boolean adhoc)
Allows turning this request into a prepared statement query.
|
QueryOptions |
QueryOptions.clientContextId(String clientContextId)
Supports providing a custom client context ID for this query.
|
QueryOptions |
QueryOptions.consistentWith(MutationState mutationState)
Sets the
MutationToken s this query should be consistent with. |
QueryOptions |
QueryOptions.flexIndex(boolean flexIndex)
Tells the query engine to use a flex index (utilizing the search service).
|
QueryOptions |
QueryOptions.maxParallelism(int maxParallelism)
Allows overriding the default maximum parallelism for the query execution on the server side.
|
QueryOptions |
QueryOptions.metrics(boolean metrics)
Enables per-request metrics in the trailing section of the query.
|
QueryOptions |
QueryOptions.parameters(JsonArray positional)
Sets positional parameters for this query.
|
QueryOptions |
QueryOptions.parameters(JsonObject named)
Sets named parameters for this query.
|
QueryOptions |
QueryOptions.pipelineBatch(int pipelineBatch)
Supports customizing the number of items execution operators can batch for fetch from the KV layer on the server.
|
QueryOptions |
QueryOptions.pipelineCap(int pipelineCap)
Allows customizing the maximum number of items each execution operator can buffer between various operators on the
server.
|
QueryOptions |
QueryOptions.profile(QueryProfile profile)
Customizes the server profiling level for this query.
|
static QueryOptions |
QueryOptions.queryOptions()
Creates new
QueryOptions with all default params set. |
QueryOptions |
QueryOptions.raw(String key,
Object value)
Allows providing custom JSON key/value pairs for advanced usage.
|
QueryOptions |
QueryOptions.readonly(boolean readonly)
Allows explicitly marking a query as being readonly and not mutating and documents on the server side.
|
QueryOptions |
QueryOptions.scanCap(int scanCap)
Supports customizing the maximum buffered channel size between the indexer and the query service.
|
QueryOptions |
QueryOptions.scanConsistency(QueryScanConsistency scanConsistency)
Customizes the consistency guarantees for this query.
|
QueryOptions |
QueryOptions.scanWait(Duration wait)
Allows customizing how long the query engine is willing to wait until the index catches up to whatever scan
consistency is asked for in this query.
|
QueryOptions |
QueryOptions.serializer(JsonSerializer serializer)
Provides a custom
JsonSerializer to be used for decoding the rows as they return from the server. |
Copyright © 2021 Couchbase, Inc.. All rights reserved.