Package org.ikasan.spec.search
Interface PagedSearchResult<T>
-
public interface PagedSearchResult<T>This class is intended to be used as a DTO for transporting a subset of search results for some domain objectfrom a larger set of searched results. This is intended to support paging. For example we may be performing a search for some domain entities that would return 1000 results if not paged. For performance and usability reasons, a search result of 1000 entries may not be desired. This class allows for sub result set to be returned, including enough information to establish its position within the superset, as well as the size of the super set - Author:
- Ikasan Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetFirstResultIndex()Accessor for first result indexlonggetLastResultIndex()Accessor for last result indexjava.util.List<T>getPagedResults()Accessor for the current page contentlonggetResultSize()Accessor for complete resultSizebooleanisLastPage()
-
-
-
Method Detail
-
getPagedResults
java.util.List<T> getPagedResults()
Accessor for the current page content- Returns:
- List
-
getFirstResultIndex
int getFirstResultIndex()
Accessor for first result index- Returns:
- index of the first result of the paged results
-
getLastResultIndex
long getLastResultIndex()
Accessor for last result index- Returns:
- index of the last result of the paged results
-
isLastPage
boolean isLastPage()
- Returns:
- true if this represents the last page in the super result set
-
getResultSize
long getResultSize()
Accessor for complete resultSize- Returns:
- size of the larger super result set
-
-