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()
AsyncViewResult
AsyncViewRow
for each row received from the view.rows
in interface AsyncViewResult
Observable
containing view rows.public int totalRows()
AsyncViewResult
totalRows
in interface AsyncViewResult
public boolean success()
AsyncViewResult
success
in interface AsyncViewResult
public rx.Observable<JsonObject> error()
AsyncViewResult
error
in interface AsyncViewResult
public JsonObject debug()
AsyncViewResult
debug
in interface AsyncViewResult
Copyright © 2015 Couchbase, Inc.