@InterfaceStability.Experimental @InterfaceAudience.Public public interface N1qlQueryResult extends Iterable<N1qlQueryRow>
Represents the results of a N1qlQuery
, 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<N1qlQueryRow> |
allRows() |
String |
clientContextId() |
List<JsonObject> |
errors() |
boolean |
finalSuccess()
Denotes the success or failure of the query.
|
N1qlMetrics |
info() |
boolean |
parseSuccess() |
String |
requestId() |
Iterator<N1qlQueryRow> |
rows() |
Object |
signature() |
forEach, iterator, spliterator
List<N1qlQueryRow> allRows()
N1qlQueryRow
, the results of the query, if successful.Iterator<N1qlQueryRow> rows()
N1qlQueryRow
, 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
…N1qlMetrics 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.