@InterfaceStability.Committed
@InterfaceAudience.Public
public interface SpatialViewRow
Represents a SpatialViewRow
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(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.
|
JsonObject |
geometry() |
String |
id()
The id of the document, if not reduced.
|
JsonArray |
key()
The key of the row index.
|
Object |
value()
The value of the row index.
|
String id()
The id of the document, if not reduced.
JsonArray key()
The key of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
Object value()
The value of the row index.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
JsonObject geometry()
JsonDocument document()
Load the underlying document, if not reduced with the default view timeout.
This method throws:
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.JsonDocument document(long timeout, TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
This method throws:
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.timeout
- the custom timeout.timeUnit
- the time unit for the custom timeout.<D extends Document<?>> D document(Class<D> target)
Load the underlying document, if not reduced with the default view timeout.
This method throws:
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.target
- the custom target document type.<D extends Document<?>> D document(Class<D> target, long timeout, TimeUnit timeUnit)
Load the underlying document, if not reduced with a custom timeout.
This method throws:
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.target
- the custom target document type.timeout
- the custom timeout.timeUnit
- the time unit for the custom timeout.Copyright © 2014 Couchbase, Inc.