T
- the type of element returned from the query (doc or row)public interface FetchResult<T>
extends java.util.Iterator<T>, java.lang.Iterable<T>
Modifier and Type | Method and Description |
---|---|
long |
count()
How many items are in this result? This method forces internal buffering of the entire result.
|
java.util.List<T> |
fetchAll()
Create a list of all elements in the result forcing internal buffering.
|
default T |
fetchOne()
Fetch the next element.
|
default boolean |
hasData()
Does this result have data? This indicates that the result was produced from a data-returning query.
|
default java.util.Iterator<T> |
iterator()
Create an iterator over all elements of the result.
|
default boolean hasData()
default T fetchOne()
default java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
long count()
java.util.List<T> fetchAll()