Class DefaultAsyncViewRow

    • Method Detail

      • id

        public String id()
        Description copied from interface: AsyncViewRow
        The id of the document, if not reduced.
        Specified by:
        id in interface AsyncViewRow
        Returns:
        the id of the document.
      • document

        public rx.Observable<JsonDocument> document()
        Description copied from interface: AsyncViewRow
        Load the underlying document, if not reduced. The Observable can error under the following conditions: - BackpressureException: If the incoming request rate is too high to be processed. - IllegalStateException: If the view is reduced and the ID is null. - TranscodingException: If the response document could not be decoded.
        Specified by:
        document in interface AsyncViewRow
        Returns:
        a Observable containing the document once loaded.
      • document

        public <D extends Document<?>> rx.Observable<D> document​(Class<D> target)
        Description copied from interface: AsyncViewRow
        Load the underlying document, if not reduced. The Observable can error under the following conditions: - BackpressureException: If the incoming request rate is too high to be processed. - IllegalStateException: If the view is reduced and the ID is null. - TranscodingException: If the response document could not be decoded.
        Specified by:
        document in interface AsyncViewRow
        Parameters:
        target - the target class to decode into.
        Returns:
        a Observable containing the document once loaded.