Class HibernateOrmSearchScrollableResultsAdapter<R,H>
- java.lang.Object
-
- org.hibernate.search.mapper.orm.search.query.spi.HibernateOrmSearchScrollableResultsAdapter<R,H>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.hibernate.query.spi.ScrollableResultsImplementor<R>,org.hibernate.ScrollableResults<R>
public class HibernateOrmSearchScrollableResultsAdapter<R,H> extends Object implements org.hibernate.ScrollableResults<R>, org.hibernate.query.spi.ScrollableResultsImplementor<R>
-
-
Constructor Summary
Constructors Constructor Description HibernateOrmSearchScrollableResultsAdapter(SearchScroll<H> scroll, int maxResults, Function<? super H,? extends R> hitExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterLast()voidbeforeFirst()voidclose()booleanfirst()Rget()intgetRowNumber()booleanisClosed()booleanisFirst()booleanisLast()booleanlast()booleannext()booleanposition(int position)booleanprevious()booleanscroll(int positions)voidsetFetchSize(int i)booleansetRowNumber(int rowNumber)
-
-
-
Constructor Detail
-
HibernateOrmSearchScrollableResultsAdapter
public HibernateOrmSearchScrollableResultsAdapter(SearchScroll<H> scroll, int maxResults, Function<? super H,? extends R> hitExtractor)
-
-
Method Detail
-
next
public boolean next()
- Specified by:
nextin interfaceorg.hibernate.ScrollableResults<R>
-
previous
public boolean previous()
- Specified by:
previousin interfaceorg.hibernate.ScrollableResults<R>
-
scroll
public boolean scroll(int positions)
- Specified by:
scrollin interfaceorg.hibernate.ScrollableResults<R>
-
last
public boolean last()
- Specified by:
lastin interfaceorg.hibernate.ScrollableResults<R>
-
first
public boolean first()
- Specified by:
firstin interfaceorg.hibernate.ScrollableResults<R>
-
beforeFirst
public void beforeFirst()
- Specified by:
beforeFirstin interfaceorg.hibernate.ScrollableResults<R>
-
afterLast
public void afterLast()
- Specified by:
afterLastin interfaceorg.hibernate.ScrollableResults<R>
-
isFirst
public boolean isFirst()
- Specified by:
isFirstin interfaceorg.hibernate.ScrollableResults<R>
-
isLast
public boolean isLast()
- Specified by:
isLastin interfaceorg.hibernate.ScrollableResults<R>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.hibernate.ScrollableResults<R>
-
getRowNumber
public int getRowNumber()
- Specified by:
getRowNumberin interfaceorg.hibernate.ScrollableResults<R>
-
position
public boolean position(int position)
- Specified by:
positionin interfaceorg.hibernate.ScrollableResults<R>
-
setRowNumber
public boolean setRowNumber(int rowNumber)
- Specified by:
setRowNumberin interfaceorg.hibernate.ScrollableResults<R>
-
setFetchSize
public void setFetchSize(int i)
- Specified by:
setFetchSizein interfaceorg.hibernate.ScrollableResults<R>
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceorg.hibernate.query.spi.ScrollableResultsImplementor<R>
-
-