Uses of Class
com.couchbase.client.java.query.QueryOptions
Package
Description
Holds all classes that are needed for the Couchbase Java SDK.
Namespace for various query-service related classes.
-
Uses of QueryOptions in com.couchbase.client.java
Modifier and TypeMethodDescriptionAsyncCluster.query
(String statement, QueryOptions options) Performs a N1QL query with customQueryOptions
.AsyncScope.query
(String statement, QueryOptions options) Performs a N1QL query with customQueryOptions
in a Scope.Cluster.query
(String statement, QueryOptions options) Performs a query against the query (N1QL) services with custom options.ReactiveCluster.query
(String statement, QueryOptions options) Performs a N1QL query with customQueryOptions
.ReactiveScope.query
(String statement, QueryOptions options) Performs a N1QL query with customQueryOptions
in a ScopeScope.query
(String statement, QueryOptions options) Performs a N1QL query with customQueryOptions
in a Scope -
Uses of QueryOptions in com.couchbase.client.java.query
Modifier and TypeMethodDescriptionQueryOptions.adhoc
(boolean adhoc) Allows turning this request into a prepared statement query.QueryOptions.asTransaction()
Performs this as a single query transaction, with default options.QueryOptions.asTransaction
(SingleQueryTransactionOptions options) Performs this as a single query transaction.QueryOptions.clientContextId
(String clientContextId) Supports providing a custom client context ID for this query.QueryOptions.consistentWith
(MutationState mutationState) Sets theMutationToken
s this query should be consistent with.QueryOptions.flexIndex
(boolean flexIndex) Tells the query engine to use a flex index (utilizing the search service).QueryOptions.maxParallelism
(int maxParallelism) Allows overriding the default maximum parallelism for the query execution on the server side.QueryOptions.metrics
(boolean metrics) Enables per-request metrics in the trailing section of the query.QueryOptions.parameters
(JsonArray positional) Sets positional parameters for this query.QueryOptions.parameters
(JsonObject named) Sets named parameters for this query.QueryOptions.pipelineBatch
(int pipelineBatch) Supports customizing the number of items execution operators can batch for fetch from the KV layer on the server.QueryOptions.pipelineCap
(int pipelineCap) Allows customizing the maximum number of items each execution operator can buffer between various operators on the server.QueryOptions.preserveExpiry
(boolean preserveExpiry) Tells the query engine to preserve expiration values set on any documents modified by this query.QueryOptions.profile
(QueryProfile profile) Customizes the server profiling level for this query.static QueryOptions
QueryOptions.queryOptions()
Creates newQueryOptions
with all default params set.Allows providing custom JSON key/value pairs for advanced usage.QueryOptions.readonly
(boolean readonly) Allows explicitly marking a query as being readonly and not mutating and documents on the server side.QueryOptions.scanCap
(int scanCap) Supports customizing the maximum buffered channel size between the indexer and the query service.QueryOptions.scanConsistency
(QueryScanConsistency scanConsistency) Customizes the consistency guarantees for this query.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.serializer
(JsonSerializer serializer) Provides a customJsonSerializer
to be used for decoding the rows as they return from the server.QueryOptions.useReplica
(Boolean useReplica) Allows returning results from replicas. -
Uses of QueryOptions in com.couchbase.client.java.transactions