Interface ExtendedSearchFetchable<H,R extends SearchResult<H>>
-
- Type Parameters:
H- The type of query hits.R- The result type (extendingSearchResult).
- All Superinterfaces:
SearchFetchable<H>
- All Known Subinterfaces:
ExtendedSearchQuery<H,R>
public interface ExtendedSearchFetchable<H,R extends SearchResult<H>> extends SearchFetchable<H>
A base interface for subtypes ofSearchFetchableallowing to easily override the result type for all relevant methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rfetch(Integer limit)Execute the query and return theSearchResult, limiting tolimithits.Rfetch(Integer offset, Integer limit)RfetchAll()Execute the query and return theSearchResult, including all hits, without any sort of limit.-
Methods inherited from interface org.hibernate.search.engine.search.query.SearchFetchable
fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, scroll
-
-
-
-
Method Detail
-
fetch
R fetch(Integer limit)
Description copied from interface:SearchFetchableExecute the query and return theSearchResult, limiting tolimithits.- Specified by:
fetchin interfaceSearchFetchable<H>- Parameters:
limit- The maximum number of hits to be included in theSearchResult.nullmeans no limit.- Returns:
- The
SearchResult.
-
fetch
R fetch(Integer offset, Integer limit)
Description copied from interface:SearchFetchable- Specified by:
fetchin interfaceSearchFetchable<H>- Parameters:
offset- The number of hits to skip before adding the hits to theSearchResult.nullmeans no offset.limit- The maximum number of hits to be included in theSearchResult.nullmeans no limit.- Returns:
- The
SearchResult.
-
fetchAll
R fetchAll()
Description copied from interface:SearchFetchableExecute the query and return theSearchResult, including all hits, without any sort of limit.SearchFetchable.fetch(Integer)orSearchFetchable.fetch(Integer, Integer)should generally be preferred, for performance reasons.- Specified by:
fetchAllin interfaceSearchFetchable<H>- Returns:
- The
SearchResult.
-
-