Class QueryStatus
java.lang.Object
com.couchbase.analytics.client.java.QueryStatus
-
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of the "status" field from the server response.@Nullable InstantReturns the query's creation time, or null if unknown.metrics()Returns a handle to the query result.booleanReturns true if query execution is complete, indicating it's safe to callresultHandle().toString()
-
Method Details
-
code
Returns the value of the "status" field from the server response.Typically one of:
"queued""running""success"
QueryHandle.fetchStatus()throws an exception if the query failed. -
metrics
-
createdAt
Returns the query's creation time, or null if unknown. -
resultReady
public boolean resultReady()Returns true if query execution is complete, indicating it's safe to callresultHandle(). -
resultHandle
Returns a handle to the query result.- Throws:
IllegalStateException- if the result is not ready; seeresultReady().
-
toString
-