Package com.couchbase.client.java.view
Interface AsyncSpatialViewResult
- All Known Implementing Classes:
DefaultAsyncSpatialViewResult
@Committed @Public public interface AsyncSpatialViewResult
Contains the result of a
SpatialViewQuery
.- Since:
- 2.1.0
- Author:
- Michael Nitschinger
-
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.
-
Method Details
-
rows
rx.Observable<AsyncSpatialViewRow> rows()Emits oneAsyncViewRow
for each row received from the view.- Returns:
- a (potentially empty)
Observable
containing view rows.
-
success
boolean success()If the query was successful.- Returns:
- true if it was, false otherwise.
-
error
rx.Observable<JsonObject> error()If it was not successful, an error is contained here.- Returns:
- the potential error.
-
debug
JsonObject debug()If debug was enabled on the query, it is contained here.- Returns:
- the debug info.
-