@InterfaceStability.Committed
@InterfaceAudience.Public
public interface ViewRow
Represents a ViewRow
fetched from the View.
Modifier and Type | Method and Description |
---|---|
JsonDocument |
document()
Load the underlying document, if not reduced with the default view timeout.
|
<D extends Document<?>> |
document(java.lang.Class<D> target)
Load the underlying document, if not reduced with the default view timeout.
|
<D extends Document<?>> |
document(java.lang.Class<D> target,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
|
JsonDocument |
document(long timeout,
java.util.concurrent.TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
|
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
.
JsonDocument document()
Load the underlying document, if not reduced with the default view timeout.
This method throws:
JsonDocument document(long timeout, java.util.concurrent.TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
This method throws:
timeout
- the custom timeout.timeUnit
- the time unit for the custom timeout.<D extends Document<?>> D document(java.lang.Class<D> target)
Load the underlying document, if not reduced with the default view timeout.
This method throws:
target
- the custom target document type.<D extends Document<?>> D document(java.lang.Class<D> target, long timeout, java.util.concurrent.TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
This method throws:
target
- the custom target document type.timeout
- the custom timeout.timeUnit
- the time unit for the custom timeout.