protected static final class MultipageSearchEngine.SearchRange extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
results
How many results to fetch.
|
int |
start
Start index from which to search (inclusive).
|
| Constructor and Description |
|---|
MultipageSearchEngine.SearchRange(int start,
int results)
Create a new search range.
|
| Modifier and Type | Method and Description |
|---|---|
static MultipageSearchEngine.SearchRange[] |
getSearchRanges(int start,
int results,
int maxIndex,
int resultsPerPage,
boolean incrementByPage)
Given an unconstrained start and results count, adjust it to the allowed window
and split into page buckets if necessary.
|
public final int start
public final int results
public MultipageSearchEngine.SearchRange(int start,
int results)
start - Start index of the first result to return (0-based).results - The number of results to return. The actual number of results
returned by a search service may be lower than this number.public static MultipageSearchEngine.SearchRange[] getSearchRanges(int start, int results, int maxIndex, int resultsPerPage, boolean incrementByPage)