Class SearchResponseSupport
java.lang.Object
org.apache.maven.search.api.support.SearchResponseSupport
- All Implemented Interfaces:
- SearchResponse
- Direct Known Subclasses:
- IndexerCoreSearchResponseImpl,- RemoteRepositorySearchResponseImpl,- SmoSearchResponseImpl
A search response support class.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSearchResponseSupport(SearchRequest searchRequest, int totalHits, List<Record> page) 
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the count of current hits in current "page".getPage()Returns current "page" of results as list of records, nevernull.Returns theSearchRequestused for this response, nevernull.intReturns the total count of hits produced bySearchResponse.getSearchRequest().toString()
- 
Field Details- 
searchRequest
- 
totalHitsprotected final int totalHits
- 
page
 
- 
- 
Constructor Details- 
SearchResponseSupport
 
- 
- 
Method Details- 
getSearchRequestDescription copied from interface:SearchResponseReturns theSearchRequestused for this response, nevernull.- Specified by:
- getSearchRequestin interface- SearchResponse
 
- 
getTotalHitspublic int getTotalHits()Description copied from interface:SearchResponseReturns the total count of hits produced bySearchResponse.getSearchRequest().- Specified by:
- getTotalHitsin interface- SearchResponse
 
- 
getCurrentHitspublic int getCurrentHits()Description copied from interface:SearchResponseReturns the count of current hits in current "page". It may be less or equal to page size ofSearchRequest.getPaging().- Specified by:
- getCurrentHitsin interface- SearchResponse
 
- 
getPageDescription copied from interface:SearchResponseReturns current "page" of results as list of records, nevernull.- Specified by:
- getPagein interface- SearchResponse
 
- 
toString
 
-