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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCount()Gets the size of result collection with respect to specified range.intgetRequestedCount()Gets specified result count.intgetRequestedStart()Gets specified start index.java.util.List<E>getResult()Gets the search result.intgetTotalCount()Gets overall count of search result without paying respect to specified search range.
-
-
-
Method Detail
-
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
java.util.List<E> 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.
-
-