public class DefaultQueryResult extends Object implements QueryResult
Constructor and Description |
---|
DefaultQueryResult(Observable<AsyncQueryRow> rows,
Observable<JsonObject> info,
Observable<JsonObject> errors,
Observable<Boolean> finalSuccess,
boolean parseSuccess,
long timeout,
TimeUnit timeUnit)
Create a default blocking representation of a query result.
|
Modifier and Type | Method and Description |
---|---|
List<QueryRow> |
allRows() |
List<JsonObject> |
errors() |
boolean |
finalSuccess() |
JsonObject |
info() |
Iterator<QueryRow> |
iterator() |
boolean |
parseSuccess() |
Iterator<QueryRow> |
rows() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultQueryResult(Observable<AsyncQueryRow> rows, Observable<JsonObject> info, Observable<JsonObject> errors, Observable<Boolean> finalSuccess, boolean parseSuccess, long timeout, TimeUnit timeUnit)
Create a default blocking representation of a query result.
rows
- the async view of rows.info
- the async view of metrics.errors
- the async view of errors and warnings.finalSuccess
- the definitive (but potentially delayed) result of the query.parseSuccess
- the intermediate result of the querytimeout
- the maximum time allowed for all components of the result to be retrieved (global timeout).timeUnit
- the unit for timeout.public List<QueryRow> allRows()
allRows
in interface QueryResult
public Iterator<QueryRow> rows()
rows
in interface QueryResult
public JsonObject info()
info
in interface QueryResult
public boolean parseSuccess()
parseSuccess
in interface QueryResult
public List<JsonObject> errors()
errors
in interface QueryResult
public boolean finalSuccess()
finalSuccess
in interface QueryResult
Copyright © 2014 Couchbase, Inc.