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 a
AsyncSpatialViewResult.- 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
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 Details
-
DefaultAsyncSpatialViewResult
public DefaultAsyncSpatialViewResult(rx.Observable<AsyncSpatialViewRow> rows, boolean success, rx.Observable<JsonObject> error, JsonObject debug)
-
-
Method Details
-
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
Description copied from interface:AsyncSpatialViewResultIf it was not successful, an error is contained here.- Specified by:
errorin interfaceAsyncSpatialViewResult- Returns:
- the potential error.
-
debug
Description copied from interface:AsyncSpatialViewResultIf debug was enabled on the query, it is contained here.- Specified by:
debugin interfaceAsyncSpatialViewResult- Returns:
- the debug info.
-