public class DefaultAsyncSpatialViewResult extends Object implements AsyncSpatialViewResult
Default implementation of a AsyncSpatialViewResult.
| Constructor and Description |
|---|
DefaultAsyncSpatialViewResult(Observable<AsyncSpatialViewRow> rows,
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<AsyncSpatialViewRow> |
rows()
Emits one
AsyncViewRow for each row received from the view. |
boolean |
success()
If the query was successful.
|
public DefaultAsyncSpatialViewResult(Observable<AsyncSpatialViewRow> rows, boolean success, Observable<JsonObject> error, JsonObject debug)
public Observable<AsyncSpatialViewRow> rows()
AsyncSpatialViewResultEmits one AsyncViewRow for each row received from the view.
rows in interface AsyncSpatialViewResultObservable containing view rows.public boolean success()
AsyncSpatialViewResultIf the query was successful.
success in interface AsyncSpatialViewResultpublic Observable<JsonObject> error()
AsyncSpatialViewResultIf it was not successful, an error is contained here.
error in interface AsyncSpatialViewResultpublic JsonObject debug()
AsyncSpatialViewResultIf debug was enabled on the query, it is contained here.
debug in interface AsyncSpatialViewResultCopyright © 2015 Couchbase, Inc.. All rights reserved.