Constructor and Description |
---|
DefaultViewRow(CouchbaseEnvironment env,
AsyncViewRow asyncViewRow) |
Modifier and Type | Method and Description |
---|---|
JsonDocument |
document()
Load the underlying document, if not reduced with the default view timeout.
|
<D extends Document<?>> |
document(Class<D> target)
Load the underlying document, if not reduced with the default view timeout.
|
<D extends Document<?>> |
document(Class<D> target,
long timeout,
TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
|
JsonDocument |
document(long timeout,
TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
|
String |
id()
The id of the document, if not reduced.
|
Object |
key()
The key of the row index.
|
String |
toString() |
Object |
value()
The value of the row index.
|
public DefaultViewRow(CouchbaseEnvironment env, AsyncViewRow asyncViewRow)
public String id()
ViewRow
public Object key()
ViewRow
JsonArray
or JsonObject
.public Object value()
ViewRow
JsonArray
or JsonObject
.public JsonDocument document()
ViewRow
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.
- 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.public JsonDocument document(long timeout, TimeUnit timeUnit)
ViewRow
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.
- 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.public <D extends Document<?>> D document(Class<D> target)
ViewRow
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.
- 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.public <D extends Document<?>> D document(Class<D> target, long timeout, TimeUnit timeUnit)
ViewRow
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.
- 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.Copyright © 2015 Couchbase, Inc.