H - The type of query hits.R - The result type (extending SearchResult).public interface ExtendedSearchFetchable<H,R extends SearchResult<H>> extends SearchFetchable<H>
SearchFetchable allowing to
easily override the result type for all relevant methods.| Modifier and Type | Method and Description |
|---|---|
R |
fetch(Integer limit)
Execute the query and return the
SearchResult,
limiting to limit hits. |
R |
fetch(Integer offset,
Integer limit)
|
R |
fetchAll()
Execute the query and return the
SearchResult,
including all hits, without any sort of limit. |
fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCountR fetch(Integer limit)
SearchFetchableSearchResult,
limiting to limit hits.fetch in interface SearchFetchable<H>limit - The maximum number of hits to be included in the SearchResult. null means no limit.SearchResult.R fetch(Integer offset, Integer limit)
SearchFetchablefetch in interface SearchFetchable<H>offset - The number of hits to skip before adding the hits to the SearchResult. null means no offset.limit - The maximum number of hits to be included in the SearchResult. null means no limit.SearchResult.R fetchAll()
SearchFetchableSearchResult,
including all hits, without any sort of limit.
SearchFetchable.fetch(Integer) or SearchFetchable.fetch(Integer, Integer) should generally be preferred, for performance reasons.
fetchAll in interface SearchFetchable<H>SearchResult.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.