public class DefaultAsyncViewResult extends Object implements AsyncViewResult
| Constructor and Description |
|---|
DefaultAsyncViewResult(rx.Observable<AsyncViewRow> rows,
int totalRows,
boolean success,
rx.Observable<JsonObject> error,
JsonObject debug) |
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
debug()
If debug was enabled on the query, it is contained here.
|
rx.Observable<JsonObject> |
error()
If it was not successful, an error is contained here.
|
rx.Observable<AsyncViewRow> |
rows()
Emits one
AsyncViewRow for each row received from the view. |
boolean |
success()
If the query was successful.
|
int |
totalRows()
The total number of rows.
|
public DefaultAsyncViewResult(rx.Observable<AsyncViewRow> rows, int totalRows, boolean success, rx.Observable<JsonObject> error, JsonObject debug)
public rx.Observable<AsyncViewRow> rows()
AsyncViewResultAsyncViewRow for each row received from the view.rows in interface AsyncViewResultObservable containing view rows.public int totalRows()
AsyncViewResulttotalRows in interface AsyncViewResultpublic boolean success()
AsyncViewResultsuccess in interface AsyncViewResultpublic rx.Observable<JsonObject> error()
AsyncViewResulterror in interface AsyncViewResultpublic JsonObject debug()
AsyncViewResultdebug in interface AsyncViewResultCopyright © 2015 Couchbase, Inc.