@InterfaceStability.Uncommitted @InterfaceAudience.Public public interface AnalyticsQueryResult extends Iterable<AnalyticsQueryRow>
Represents the results of a 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.
|
AnalyticsMetrics |
info() |
boolean |
parseSuccess() |
String |
requestId() |
Iterator<AnalyticsQueryRow> |
rows() |
Object |
signature() |
String |
status()
Returns the final status of the query.
|
forEach, iterator, spliterator
List<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()
Denotes the success or failure of the query. It could fail slower than with 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()
Returns the final status of the query. For example, a successful query will return “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()
Copyright © 2015 Couchbase, Inc.