Class CommonQueryOptions<SELF extends CommonQueryOptions<SELF>>
- Direct Known Subclasses:
QueryOptions,StartQueryOptions
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclientContextId(@Nullable String clientContextId) maxRetries(@Nullable Integer maxRetries) Limits the number of times a failed retriable request is retried.parameters(@Nullable List<?> positionalParameters) parameters(@Nullable Map<String, ?> namedParameters) Specifies arbitrary name-value pairs to include the query request JSON.scanConsistency(@Nullable ScanConsistency scanConsistency) Sets the time limit for executing the query.
-
Method Details
-
timeout
Sets the time limit for executing the query. If the query does not complete within this time, it is automatically canceled.For
Queryable.executeQuery(java.lang.String, java.util.function.Consumer<com.couchbase.analytics.client.java.QueryOptions>)andQueryable.executeStreamingQuery(java.lang.String, java.util.function.Consumer<com.couchbase.analytics.client.java.Row>, java.util.function.Consumer<com.couchbase.analytics.client.java.QueryOptions>), this is also the client-side request timeout.A timeout is surfaced as:
AnalyticsTimeoutExceptionif the client notices the timeout first.QueryExceptionif the server notices the timeout first, which is often the case when working with query handles returned fromQueryable.startQuery(String).
If not specified, defaults to
TimeoutOptions.queryTimeout(Duration). -
clientContextId
-
parameters
-
parameters
- Implementation Note:
- There must not be a varargs overload; that would introduce ambiguity, since a query can have a single parameter whose value is a list.
-
scanWait
-
scanConsistency
-
readOnly
-
maxRetries
Limits the number of times a failed retriable request is retried.If not specified, defaults to the cluster's default max retries.
- See Also:
-
raw
Specifies arbitrary name-value pairs to include the query request JSON.Marked as "experimental" because this might not be supported by future client-server protocols. Let us know if you need to use this method, so we can consider extending the stable API to support your use case.
-