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