@InterfaceStability.Committed @InterfaceAudience.Public public interface AnalyticsQueryResult extends Iterable<AnalyticsQueryRow>
AnalyticsQuery, in a blocking fashion.
Note that the result is complete, meaning it will block until all
data has been streamed from the server.| Modifier and Type | Method and Description |
|---|---|
List<AnalyticsQueryRow> |
allRows() |
String |
clientContextId() |
List<JsonObject> |
errors() |
boolean |
finalSuccess()
Denotes the success or failure of the query.
|
AnalyticsDeferredResultHandle |
handle() |
AnalyticsMetrics |
info() |
boolean |
parseSuccess() |
String |
requestId() |
Iterator<AnalyticsQueryRow> |
rows() |
Object |
signature() |
String |
status()
Returns the final status of the query.
|
forEach, iterator, spliteratorList<AnalyticsQueryRow> allRows()
AnalyticsQueryRow, the results of the query, if successful.Iterator<AnalyticsQueryRow> rows()
AnalyticsQueryRow, the results of the query, if successful.Object signature()
row. This signature is usually a
JsonObject, but could also be any JSON-valid type like a boolean scalar, JsonArray...AnalyticsMetrics info()
boolean parseSuccess()
boolean finalSuccess()
parseSuccess(), for example if a fatal error comes up while streaming the results
to the client. This method blocks until the query is over and the success can be established.String status()
success"
(which is equivalent to finalSuccess() returning true). Other statuses include (but are not limited to)
"fatal" when fatal errors occurred and "timeout" when the query timed out on the server
side but not yet on the client side. This method blocks until the query is over and the status can be established.List<JsonObject> errors()
String requestId()
String clientContextId()
@InterfaceStability.Experimental AnalyticsDeferredResultHandle handle()
Copyright © 2015 Couchbase, Inc.