Class QueryOptions
java.lang.Object
com.couchbase.analytics.client.java.QueryOptions
Optional parameters for
Queryable.executeQuery(String, Consumer)
and Queryable.executeStreamingQuery(String, Consumer, Consumer).-
Method Summary
Modifier and TypeMethodDescriptionclientContextId(@Nullable String clientContextId) deserializer(@Nullable Deserializer deserializer) Sets the deserializer used byRow.as(java.lang.Class<T>)to convert query result rows into Java objects.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)
-
Method Details
-
timeout
-
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.
-
deserializer
Sets the deserializer used byRow.as(java.lang.Class<T>)to convert query result rows into Java objects.If not specified, defaults to the cluster's default deserializer.
- See Also:
-
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.
-