V
- public interface QueryResult<V>
extends java.lang.Iterable<V>, java.io.Closeable
A QueryResult implements both Iterable and Closeable interfaces. It is intended to be used as a lazy-loading wrapper for a number of results, that may hold system resources open. Some implementations will not lazy-load. Some implementations will hold no system resources. In any case, client code should not assume that it the case in order to support difference Chunk implementations. ie. Client code should always close a QueryResult when it is finished with.
Modifier and Type | Interface and Description |
---|---|
static class |
QueryResult.EmptyQueryResult<V>
An empty implementation of QueryResult interface that does nothing.
|
static class |
QueryResult.IterableQueryResult<V>
An implementation of QueryResult interface that wraps a collection of values.
|
static class |
QueryResult.SingletonQueryResult<V>
An implementation of QueryResult interface that wraps a single value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isClosed()
Returns if this QueryResult is already closed.
|