Class DefaultAsyncN1qlQueryResult

    • Constructor Detail

    • Method Detail

      • rows

        public rx.Observable<AsyncN1qlQueryRow> rows()
        Specified by:
        rows in interface AsyncN1qlQueryResult
        Returns:
        an async stream of each row resulting from the query (empty if fatal errors occurred).
      • signature

        public rx.Observable<Object> signature()
        Specified by:
        signature in interface AsyncN1qlQueryResult
        Returns:
        an async single-item representing the signature of the results, that can be used to learn about the common structure of each row. This signature is usually a JsonObject, but could also be any JSON-valid type like a boolean scalar, JsonArray...
      • info

        public rx.Observable<N1qlMetrics> info()
        Specified by:
        info in interface AsyncN1qlQueryResult
        Returns:
        an async single item describing some metrics/info about the execution of the query.
      • profileInfo

        public rx.Observable<JsonObject> profileInfo()
        Specified by:
        profileInfo in interface AsyncN1qlQueryResult
        Returns:
        an async single item describing some profiling info about the execution of the query.
      • status

        public rx.Observable<String> status()
        Description copied from interface: AsyncN1qlQueryResult
        Asynchronously returns the final status of the query. For example, a successful query will return "success" (which is equivalent to AsyncN1qlQueryResult.finalSuccess() returning true). Other statuses include (but are not limited to) "fatal" when fatal errors occurred and "timeout" when the query timed out on the server side but not yet on the client side. Receiving a (single) value for status means the query is over.
        Specified by:
        status in interface AsyncN1qlQueryResult
      • parseSuccess

        public boolean parseSuccess()
        Description copied from interface: AsyncN1qlQueryResult
        Immediately denotes initial parsing success of the query. As rows are processed, it could be that a late failure occurs. See AsyncN1qlQueryResult.finalSuccess() for the end of processing status.
        Specified by:
        parseSuccess in interface AsyncN1qlQueryResult
        Returns:
        true if the query could be parsed, false if it short-circuited due to syntax/fatal error.
      • errors

        public rx.Observable<JsonObject> errors()
        Specified by:
        errors in interface AsyncN1qlQueryResult
        Returns:
        an async stream of errors or warnings encountered while executing the query.
      • clientContextId

        public String clientContextId()
        Specified by:
        clientContextId in interface AsyncN1qlQueryResult
        Returns:
        the clientContextId that was set by the client (could be truncated to 64 bytes of UTF-8 chars)