Uses of Class
com.couchbase.client.java.query.QueryOptions
| 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.
|
-
Uses of QueryOptions in com.couchbase.client.java
Methods in com.couchbase.client.java with parameters of type QueryOptions Modifier and Type Method Description CompletableFuture<QueryResult>AsyncCluster. query(String statement, QueryOptions options)Performs a N1QL query with customQueryOptions.CompletableFuture<QueryResult>AsyncScope. query(String statement, QueryOptions options)Performs a N1QL query with customQueryOptionsin a Scope.QueryResultCluster. query(String statement, QueryOptions options)Performs a query against the query (N1QL) services with custom options.Mono<ReactiveQueryResult>ReactiveCluster. query(String statement, QueryOptions options)Performs a N1QL query with customQueryOptions.Mono<ReactiveQueryResult>ReactiveScope. query(String statement, QueryOptions options)Performs a N1QL query with customQueryOptionsin a ScopeQueryResultScope. query(String statement, QueryOptions options)Performs a N1QL query with customQueryOptionsin a Scope -
Uses of QueryOptions in com.couchbase.client.java.query
Methods in com.couchbase.client.java.query that return QueryOptions Modifier and Type Method Description QueryOptionsQueryOptions. adhoc(boolean adhoc)Allows turning this request into a prepared statement query.QueryOptionsQueryOptions. clientContextId(String clientContextId)Supports providing a custom client context ID for this query.QueryOptionsQueryOptions. consistentWith(MutationState mutationState)Sets theMutationTokens this query should be consistent with.QueryOptionsQueryOptions. flexIndex(boolean flexIndex)Tells the query engine to use a flex index (utilizing the search service).QueryOptionsQueryOptions. maxParallelism(int maxParallelism)Allows overriding the default maximum parallelism for the query execution on the server side.QueryOptionsQueryOptions. metrics(boolean metrics)Enables per-request metrics in the trailing section of the query.QueryOptionsQueryOptions. parameters(JsonArray positional)Sets positional parameters for this query.QueryOptionsQueryOptions. parameters(JsonObject named)Sets named parameters for this query.QueryOptionsQueryOptions. pipelineBatch(int pipelineBatch)Supports customizing the number of items execution operators can batch for fetch from the KV layer on the server.QueryOptionsQueryOptions. pipelineCap(int pipelineCap)Allows customizing the maximum number of items each execution operator can buffer between various operators on the server.QueryOptionsQueryOptions. profile(QueryProfile profile)Customizes the server profiling level for this query.static QueryOptionsQueryOptions. queryOptions()Creates newQueryOptionswith all default params set.QueryOptionsQueryOptions. raw(String key, Object value)Allows providing custom JSON key/value pairs for advanced usage.QueryOptionsQueryOptions. readonly(boolean readonly)Allows explicitly marking a query as being readonly and not mutating and documents on the server side.QueryOptionsQueryOptions. scanCap(int scanCap)Supports customizing the maximum buffered channel size between the indexer and the query service.QueryOptionsQueryOptions. scanConsistency(QueryScanConsistency scanConsistency)Customizes the consistency guarantees for this query.QueryOptionsQueryOptions. 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.QueryOptionsQueryOptions. serializer(JsonSerializer serializer)Provides a customJsonSerializerto be used for decoding the rows as they return from the server.