Class DefaultAsyncViewResult

java.lang.Object
com.couchbase.client.java.view.DefaultAsyncViewResult
All Implemented Interfaces:
AsyncViewResult

public class DefaultAsyncViewResult
extends Object
implements AsyncViewResult
  • Constructor Details

    • DefaultAsyncViewResult

      public DefaultAsyncViewResult​(rx.Observable<AsyncViewRow> rows, int totalRows, boolean success, rx.Observable<JsonObject> error, JsonObject debug)
  • Method Details

    • rows

      public rx.Observable<AsyncViewRow> rows()
      Description copied from interface: AsyncViewResult
      Emits one AsyncViewRow for each row received from the view.
      Specified by:
      rows in interface AsyncViewResult
      Returns:
      a (potentially empty) Observable containing view rows.
    • totalRows

      public int totalRows()
      Description copied from interface: AsyncViewResult
      The total number of rows.
      Specified by:
      totalRows in interface AsyncViewResult
      Returns:
      number of rows.
    • success

      public boolean success()
      Description copied from interface: AsyncViewResult
      If the query was successful.
      Specified by:
      success in interface AsyncViewResult
      Returns:
      true if it was, false otherwise.
    • error

      public rx.Observable<JsonObject> error()
      Description copied from interface: AsyncViewResult
      If it was not successful, an error is contained here.
      Specified by:
      error in interface AsyncViewResult
      Returns:
      the potential error.
    • debug

      public JsonObject debug()
      Description copied from interface: AsyncViewResult
      If debug was enabled on the query, it is contained here.
      Specified by:
      debug in interface AsyncViewResult
      Returns:
      the debug info.