Package com.couchbase.client.java.view
Interface AsyncViewResult
- All Known Implementing Classes:
DefaultAsyncViewResult
@Committed @Public public interface AsyncViewResult
Represents the result from a
ViewQuery
.- Since:
- 2.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<AsyncViewRow>
rows()
Emits oneAsyncViewRow
for each row received from the view.boolean
success()
If the query was successful.int
totalRows()
The total number of rows.
-
Method Details
-
rows
rx.Observable<AsyncViewRow> rows()Emits oneAsyncViewRow
for each row received from the view.- Returns:
- a (potentially empty)
Observable
containing view rows.
-
totalRows
int totalRows()The total number of rows.- Returns:
- number of 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.
-