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 Type
    Method
    Description
    int
    Gets the size of result collection with respect to specified range.
    default String
    Gets the id of used datasource.
    int
    Gets specified result count.
    int
    Gets specified start index.
    Gets the search result.
    int
    Gets 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

      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 a null value at this position.
    • getRequestedStart

      int getRequestedStart()
      Gets specified start index.
    • getRequestedCount

      int getRequestedCount()
      Gets specified result count.
    • getDataSourceId

      default String getDataSourceId()
      Gets the id of used datasource.