@InterfaceStability.Committed
@InterfaceAudience.Public
public interface AsyncViewRow
Represents a row fetched from the View
.
The row itself contains fixed properties returned, but is also able to - on demand - load the full document if instructed through the document()
methods.
Modifier and Type | Method and Description |
---|---|
rx.Observable<JsonDocument> |
document()
Load the underlying document, if not reduced.
|
<D extends Document<?>> |
document(java.lang.Class<D> target)
Load the underlying document, if not reduced.
|
java.lang.String |
id()
The id of the document, if not reduced.
|
java.lang.Object |
key()
The key of the row index.
|
java.lang.Object |
value()
The value of the row index.
|
java.lang.String id()
The id of the document, if not reduced.
java.lang.Object key()
The key of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
java.lang.Object value()
The value of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
rx.Observable<JsonDocument> document()
Load the underlying document, if not reduced.
The Observable
can error under the following conditions:
Observable
containing the document once loaded.<D extends Document<?>> rx.Observable<D> document(java.lang.Class<D> target)
Load the underlying document, if not reduced.
The Observable
can error under the following conditions:
target
- the target class to decode into.Observable
containing the document once loaded.