@InterfaceStability.Committed @InterfaceAudience.Public public interface SpatialViewResult extends Iterable<SpatialViewRow>
ViewQuery
.Modifier and Type | Method and Description |
---|---|
List<SpatialViewRow> |
allRows()
Collects all rows received from the view with the default view timeout.
|
List<SpatialViewRow> |
allRows(long timeout,
TimeUnit timeUnit)
Collects all rows received from the view with the default view timeout.
|
JsonObject |
debug()
If debug was enabled on the query, it is contained here.
|
JsonObject |
error()
If it was not successful, an error is contained here.
|
JsonObject |
error(long timeout,
TimeUnit timeUnit)
If it was not successful, an error is contained here.
|
Iterator<SpatialViewRow> |
rows()
Emits one
ViewRow for each row received from the view with the default view timeout. |
Iterator<SpatialViewRow> |
rows(long timeout,
TimeUnit timeUnit)
Emits one
ViewRow for each row received from the view with a custom timeout. |
boolean |
success()
If the query was successful.
|
forEach, iterator, spliterator
List<SpatialViewRow> allRows()
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.List
containing view rows.List<SpatialViewRow> allRows(long timeout, TimeUnit timeUnit)
TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.List
containing view rows.Iterator<SpatialViewRow> rows()
ViewRow
for each row received from the view with the default view timeout.
This method throws:
- TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.Iterator
containing view rows.Iterator<SpatialViewRow> rows(long timeout, TimeUnit timeUnit)
ViewRow
for each row received from the view with a custom timeout.
This method throws:
- TimeoutException
wrapped in a RuntimeException
: If the timeout is exceeded.timeout
- the custom timeout.timeUnit
- the time unit for the custom timeout.Iterator
containing view rows.boolean success()
JsonObject error()
JsonObject error(long timeout, TimeUnit timeUnit)
JsonObject debug()
Copyright © 2015 Couchbase, Inc.