Constructor and Description |
---|
DefaultViewRow(CouchbaseEnvironment env,
Bucket bucket,
java.lang.String id,
java.lang.Object key,
java.lang.Object value) |
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.
|
public DefaultViewRow(CouchbaseEnvironment env, Bucket bucket, java.lang.String id, java.lang.Object key, java.lang.Object value)
public java.lang.String id()
ViewRow
The id of the document, if not reduced.
public java.lang.Object key()
ViewRow
The key of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
public java.lang.Object value()
ViewRow
The value of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
public JsonDocument document()
ViewRow
Load the underlying document, if not reduced with the default view timeout.
This method throws:
public JsonDocument document(long timeout, java.util.concurrent.TimeUnit timeUnit)
ViewRow
Load the underlying document, if not reduced with a custom timeout.
This method throws:
public <D extends Document<?>> D document(java.lang.Class<D> target)
ViewRow
Load the underlying document, if not reduced with the default view timeout.
This method throws:
public <D extends Document<?>> D document(java.lang.Class<D> target, long timeout, java.util.concurrent.TimeUnit timeUnit)
ViewRow
Load the underlying document, if not reduced with a custom timeout.
This method throws: