Class QueryHandle
java.lang.Object
com.couchbase.analytics.client.java.QueryHandle
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Returns the query's current status.fetchStatus(Consumer<FetchStatusOptions> options) Returns the query's current status.static QueryHandlefromSerialized(Cluster cluster, String serializedForm) Returns the serialized form of this query handle, suitable for persistence or transmission to another process.toString()
-
Method Details
-
fetchStatus
Returns the query's current status. Call this method to access the query result.- Throws:
QueryException- if the server response indicates an error occurred during query execution.AnalyticsTimeoutException- if the server does not respond before the timeout.AnalyticsException- if anything else went wrong while executing this request.
-
fetchStatus
Returns the query's current status. Call this method to access the query result. -
cancel
public void cancel() -
toSerialized
Returns the serialized form of this query handle, suitable for persistence or transmission to another process.Note: Since this is currently an experimental API, the serialized form is not guaranteed to be stable across library versions.
- See Also:
-
fromSerialized
- See Also:
-
toString
-