@InterfaceStability.Experimental @InterfaceAudience.Public public interface QueryResult extends Iterable<QueryRow>
Represents the results of a Query
, 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<QueryRow> |
allRows() |
String |
clientContextId() |
List<JsonObject> |
errors() |
boolean |
finalSuccess()
Denotes the success or failure of the query.
|
QueryMetrics |
info() |
boolean |
parseSuccess() |
String |
requestId() |
Iterator<QueryRow> |
rows() |
Object |
signature() |
forEach, iterator, spliterator
List<QueryRow> allRows()
QueryRow
, the results of the query, if successful.Iterator<QueryRow> rows()
QueryRow
, 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
…QueryMetrics 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. Receiving a (single) value for finalSuccess means the query is over.
List<JsonObject> errors()
String requestId()
String clientContextId()
Copyright © 2014 Couchbase, Inc.