public class DefaultAsyncViewRow extends java.lang.Object implements AsyncViewRow
Default implementation of a AsyncViewRow.
| Constructor and Description |
|---|
DefaultAsyncViewRow(AsyncBucket bucket,
java.lang.String id,
java.lang.Object key,
java.lang.Object value) |
| 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.String |
toString() |
java.lang.Object |
value()
The value of the row index.
|
public DefaultAsyncViewRow(AsyncBucket bucket, java.lang.String id, java.lang.Object key, java.lang.Object value)
public java.lang.String id()
AsyncViewRowThe id of the document, if not reduced.
id in interface AsyncViewRowpublic java.lang.Object key()
AsyncViewRowThe key of the row index.
The object can be any valid JSON object, including JsonArray or JsonObject.
key in interface AsyncViewRowpublic java.lang.Object value()
AsyncViewRowThe value of the row index.
The object can be any valid JSON object, including JsonArray or JsonObject.
value in interface AsyncViewRowpublic rx.Observable<JsonDocument> document()
AsyncViewRowLoad the underlying document, if not reduced.
The Observable can error under the following conditions:
document in interface AsyncViewRowObservable containing the document once loaded.public <D extends Document<?>> rx.Observable<D> document(java.lang.Class<D> target)
AsyncViewRowLoad the underlying document, if not reduced.
The Observable can error under the following conditions:
document in interface AsyncViewRowtarget - the target class to decode into.Observable containing the document once loaded.public java.lang.String toString()
toString in class java.lang.Object