|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageIterator<T>
Extends Iterator
, provides additional paging methods
using the default iterator methods. This will simply iterate
through every item from the current page on until the end
fetching more pages as necessary.
Method Summary | |
---|---|
int |
getPageSize()
Returns the maximum number of results per page |
boolean |
hasNext()
Returns true if there are more pages. |
ResultIterator<T> |
next()
Returns a simple Iterator over the results in the next page |
ResultIterator<T> |
seekToPage(int page)
Seeks to a page. |
Method Detail |
---|
int getPageSize()
ResultIterator<T> seekToPage(int page) throws QueryStructureException, java.lang.IllegalArgumentException
page
- page number
QueryStructureException
java.lang.IllegalArgumentException
boolean hasNext()
Iterator
.
ResultIterator<T> next() throws QueryStructureException
Iterator
over the results in the next page
QueryStructureException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |