public interface ResultSet extends List<ResultItem>
Modifier and Type | Field and Description |
---|---|
static String |
ALWAYS_DETACH_SEARCH_RESULTS_KEY |
Modifier and Type | Method and Description |
---|---|
int |
getOffset()
Returns the current offset for this result set.
|
int |
getPageHits()
Returns the amount of actual matching results.
|
int |
getPageNumber()
Computes the page number among the total set of results.
|
int |
getRange()
Returns the amount of results from offset requested.
|
int |
getTotalHits()
Returns the total number of hits this resultset comes from.
|
ResultSet |
goToPage(int page)
Goes to requested page.
|
boolean |
hasNextPage()
Is there another page available?
|
boolean |
isFirstPage()
Is this result set the first page of results?
|
ResultSet |
nextPage()
Computes the next page by replaying the exact same request.
|
ResultSet |
replay()
Replays the exact same query.
|
ResultSet |
replay(int offset,
int range)
Replays the same query with new offset and range.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
static final String ALWAYS_DETACH_SEARCH_RESULTS_KEY
int getOffset()
int getRange()
int getTotalHits()
int getPageHits()
This is in contrast to getRange() that returns the maximum number of results per page.
ResultSet replay() throws SearchException
SearchException
ResultSet replay(int offset, int range) throws SearchException
offset
- the new offsetrange
- the new rangeSearchException
ResultSet nextPage() throws SearchException
SearchException
ResultSet goToPage(int page) throws SearchException
page
- the page to go toSearchException
boolean hasNextPage()
boolean isFirstPage()
int getPageNumber()
Copyright © 2015 Nuxeo SA. All rights reserved.