- Type Parameters:
T
- the type of each result
- All Implemented Interfaces:
- java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<T>, CloseableIterator<T>
public class QueryResults<T>
extends java.lang.Object
implements CloseableIterator<T>
A CloseableIterator which carries a size and an optional boolean indicating whether there are more results.
Used as the result of a search when the repository can know the total number of matches.
The size might be greater than the number of elements in the iterator, for instance in the case of a paged query.
If #isMore() is true, then this iterator has all results or the last page of results.
If #isMore() is false, then there are more results available past the page shown.
If #isMore() is null, either is possible.