Package ru.slie.luna.db
Class SearchResultImpl<M,E extends BaseEntity>
java.lang.Object
ru.slie.luna.db.SearchResultImpl<M,E>
- All Implemented Interfaces:
Iterator<M>,SearchResult<M>
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResultImpl(Query<E> query, SearchParams params, Function<E, M> factory) SearchResultImpl(Query<E> query, SearchParams params, FindOptions findOptions, Function<E, M> factory) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
SearchResultImpl
-
SearchResultImpl
public SearchResultImpl(Query<E> query, SearchParams params, FindOptions findOptions, Function<E, M> factory)
-
-
Method Details
-
getTotal
public long getTotal()- Specified by:
getTotalin interfaceSearchResult<M>
-
getResults
- Specified by:
getResultsin interfaceSearchResult<M>
-
next
-
hasNext
public boolean hasNext() -
searchParams
- Specified by:
searchParamsin interfaceSearchResult<M>
-
getLimit
public int getLimit()- Specified by:
getLimitin interfaceSearchResult<M>
-
getPage
public int getPage()- Specified by:
getPagein interfaceSearchResult<M>
-