Package com.couchbase.client.java.view
Class DefaultAsyncSpatialViewResult
- java.lang.Object
-
- com.couchbase.client.java.view.DefaultAsyncSpatialViewResult
-
- All Implemented Interfaces:
AsyncSpatialViewResult
public class DefaultAsyncSpatialViewResult extends Object implements AsyncSpatialViewResult
Default implementation of aAsyncSpatialViewResult.- Since:
- 2.1.0
- Author:
- Michael Nitschinger
-
-
Constructor Summary
Constructors Constructor Description DefaultAsyncSpatialViewResult(rx.Observable<AsyncSpatialViewRow> rows, boolean success, rx.Observable<JsonObject> error, JsonObject debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectdebug()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<AsyncSpatialViewRow>rows()Emits oneAsyncViewRowfor each row received from the view.booleansuccess()If the query was successful.
-
-
-
Constructor Detail
-
DefaultAsyncSpatialViewResult
public DefaultAsyncSpatialViewResult(rx.Observable<AsyncSpatialViewRow> rows, boolean success, rx.Observable<JsonObject> error, JsonObject debug)
-
-
Method Detail
-
rows
public rx.Observable<AsyncSpatialViewRow> rows()
Description copied from interface:AsyncSpatialViewResultEmits oneAsyncViewRowfor each row received from the view.- Specified by:
rowsin interfaceAsyncSpatialViewResult- Returns:
- a (potentially empty)
Observablecontaining view rows.
-
success
public boolean success()
Description copied from interface:AsyncSpatialViewResultIf the query was successful.- Specified by:
successin interfaceAsyncSpatialViewResult- Returns:
- true if it was, false otherwise.
-
error
public rx.Observable<JsonObject> error()
Description copied from interface:AsyncSpatialViewResultIf it was not successful, an error is contained here.- Specified by:
errorin interfaceAsyncSpatialViewResult- Returns:
- the potential error.
-
debug
public JsonObject debug()
Description copied from interface:AsyncSpatialViewResultIf debug was enabled on the query, it is contained here.- Specified by:
debugin interfaceAsyncSpatialViewResult- Returns:
- the debug info.
-
-