@InterfaceStability.Uncommitted @InterfaceAudience.Public public class DefaultAsyncQueryResult extends Object implements AsyncQueryResult
The default implementation of an AsyncQueryResult
.
Constructor and Description |
---|
DefaultAsyncQueryResult(Observable<AsyncQueryRow> rows,
Observable<Object> signature,
Observable<JsonObject> info,
Observable<JsonObject> errors,
Observable<Boolean> finalSuccess,
boolean parsingSuccess,
String requestId,
String clientContextId) |
Modifier and Type | Method and Description |
---|---|
String |
clientContextId() |
Observable<JsonObject> |
errors() |
Observable<Boolean> |
finalSuccess()
Asynchronously denotes the success or failure of the query.
|
Observable<QueryMetrics> |
info() |
boolean |
parseSuccess()
Immediately denotes initial parsing success of the query.
|
String |
requestId() |
Observable<AsyncQueryRow> |
rows() |
Observable<Object> |
signature() |
public DefaultAsyncQueryResult(Observable<AsyncQueryRow> rows, Observable<Object> signature, Observable<JsonObject> info, Observable<JsonObject> errors, Observable<Boolean> finalSuccess, boolean parsingSuccess, String requestId, String clientContextId)
public Observable<AsyncQueryRow> rows()
rows
in interface AsyncQueryResult
public Observable<Object> signature()
signature
in interface AsyncQueryResult
row
. This signature is usually a JsonObject
, but could also be any JSON-valid type like a boolean scalar, JsonArray
…public Observable<QueryMetrics> info()
info
in interface AsyncQueryResult
public Observable<Boolean> finalSuccess()
AsyncQueryResult
Asynchronously denotes the success or failure of the query. It could fail slower than with AsyncQueryResult.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.
finalSuccess
in interface AsyncQueryResult
public boolean parseSuccess()
AsyncQueryResult
Immediately denotes initial parsing success of the query.
As rows are processed, it could be that a late failure occurs. See AsyncQueryResult.finalSuccess()
for the end of processing status.
parseSuccess
in interface AsyncQueryResult
public Observable<JsonObject> errors()
errors
in interface AsyncQueryResult
public String requestId()
requestId
in interface AsyncQueryResult
public String clientContextId()
clientContextId
in interface AsyncQueryResult
Copyright © 2014 Couchbase, Inc.