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 JsonObject
debug()
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 oneAsyncViewRow
for each row received from the view.boolean
success()
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:AsyncSpatialViewResult
Emits oneAsyncViewRow
for each row received from the view.- Specified by:
rows
in interfaceAsyncSpatialViewResult
- Returns:
- a (potentially empty)
Observable
containing view rows.
-
success
public boolean success()Description copied from interface:AsyncSpatialViewResult
If the query was successful.- Specified by:
success
in interfaceAsyncSpatialViewResult
- Returns:
- true if it was, false otherwise.
-
error
Description copied from interface:AsyncSpatialViewResult
If it was not successful, an error is contained here.- Specified by:
error
in interfaceAsyncSpatialViewResult
- Returns:
- the potential error.
-
debug
Description copied from interface:AsyncSpatialViewResult
If debug was enabled on the query, it is contained here.- Specified by:
debug
in interfaceAsyncSpatialViewResult
- Returns:
- the debug info.
-