@InterfaceStability.Committed @InterfaceAudience.Public public interface AsyncSpatialViewRow
Represents a row fetched from the Spatial View
.
The row itself contains fixed properties returned, but is also able to - on demand - load the full document if instructed through the document()
methods.
Modifier and Type | Method and Description |
---|---|
Observable<JsonDocument> |
document()
Load the underlying document.
|
<D extends Document<?>> |
document(Class<D> target)
Load the underlying document.
|
JsonObject |
geometry()
The geometry of the row, if emitted.
|
String |
id()
The id of the document, if not reduced.
|
JsonArray |
key()
The key of the row.
|
Object |
value()
The value of the row.
|
String id()
The id of the document, if not reduced.
JsonArray key()
The key of the row.
Object value()
The value of the row.
The object can be any valid JSON object, including JsonArray
or JsonObject
.
JsonObject geometry()
The geometry of the row, if emitted.
Note that the geometry is only set if GeoJSON is emitted by the spatial view.
Observable<JsonDocument> document()
Load the underlying document.
The Observable
can error under the following conditions:
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.Observable
containing the document once loaded.<D extends Document<?>> Observable<D> document(Class<D> target)
Load the underlying document.
The Observable
can error under the following conditions:
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 target class to decode into.Observable
containing the document once loaded.Copyright © 2015 Couchbase, Inc.