Package de.hybris.platform.jalo
Interface SearchResult<E>
- All Known Implementing Classes:
SQLSearchResult,StandardSearchResult
public interface SearchResult<E>
Returned by search methods. It contains the result collection and further informations about the search (number of
hits e.g.)
-
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Gets the size of result collection with respect to specified range.default StringGets the id of used datasource.intGets specified result count.intGets specified start index.Gets the search result.intGets overall count of search result without paying respect to specified search range.
-
Method Details
-
getCount
int getCount()Gets the size of result collection with respect to specified range. -
getTotalCount
int getTotalCount()Gets overall count of search result without paying respect to specified search range. Result collection size will be lower or same. -
getResult
Gets the search result. Returned collection uses lazy translation approach, on first access on an collection element the element will be translated to an item. In case the item was removed between gathering of search result and translation of specific element the returned collection will have anullvalue at this position. -
getRequestedStart
int getRequestedStart()Gets specified start index. -
getRequestedCount
int getRequestedCount()Gets specified result count. -
getDataSourceId
Gets the id of used datasource.
-