public class DefaultQueryResult extends Object implements QueryResult
Constructor and Description |
---|
DefaultQueryResult(List<AsyncQueryRow> rows,
JsonObject signature,
JsonObject info,
List<JsonObject> errors,
Boolean finalSuccess,
boolean parseSuccess,
String requestId,
String clientContextId)
Create a default blocking representation of a query result.
|
Modifier and Type | Method and Description |
---|---|
List<QueryRow> |
allRows() |
String |
clientContextId() |
List<JsonObject> |
errors() |
boolean |
finalSuccess() |
JsonObject |
info() |
Iterator<QueryRow> |
iterator() |
boolean |
parseSuccess() |
String |
requestId() |
Iterator<QueryRow> |
rows() |
JsonObject |
signature() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public DefaultQueryResult(List<AsyncQueryRow> rows, JsonObject signature, JsonObject info, List<JsonObject> errors, Boolean finalSuccess, boolean parseSuccess, String requestId, String clientContextId)
Create a default blocking representation of a query result.
rows
- the list of rows.signature
- the signature for rows.info
- the metrics.errors
- the list of errors and warnings.finalSuccess
- the definitive (but potentially delayed) result of the query.parseSuccess
- the intermediate result of the querypublic List<QueryRow> allRows()
allRows
in interface QueryResult
public Iterator<QueryRow> rows()
rows
in interface QueryResult
public JsonObject signature()
signature
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
public String requestId()
requestId
in interface QueryResult
public String clientContextId()
clientContextId
in interface QueryResult
Copyright © 2014 Couchbase, Inc.