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()
AsyncSpatialViewResult
Emits one AsyncViewRow
for each row received from the view.
rows
in interface AsyncSpatialViewResult
Observable
containing view rows.public boolean success()
AsyncSpatialViewResult
If the query was successful.
success
in interface AsyncSpatialViewResult
public Observable<JsonObject> error()
AsyncSpatialViewResult
If it was not successful, an error is contained here.
error
in interface AsyncSpatialViewResult
public JsonObject debug()
AsyncSpatialViewResult
If debug was enabled on the query, it is contained here.
debug
in interface AsyncSpatialViewResult
Copyright © 2014 Couchbase, Inc.