Class 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 Detail

      • HibernateOrmSearchScrollableResultsAdapter

        public HibernateOrmSearchScrollableResultsAdapter​(SearchScroll<H> scroll,
                                                          int maxResults,
                                                          Function<? super H,​? extends R> hitExtractor)
    • Method Detail

      • next

        public boolean next()
        Specified by:
        next in interface org.hibernate.ScrollableResults<R>
      • previous

        public boolean previous()
        Specified by:
        previous in interface org.hibernate.ScrollableResults<R>
      • scroll

        public boolean scroll​(int positions)
        Specified by:
        scroll in interface org.hibernate.ScrollableResults<R>
      • last

        public boolean last()
        Specified by:
        last in interface org.hibernate.ScrollableResults<R>
      • first

        public boolean first()
        Specified by:
        first in interface org.hibernate.ScrollableResults<R>
      • beforeFirst

        public void beforeFirst()
        Specified by:
        beforeFirst in interface org.hibernate.ScrollableResults<R>
      • afterLast

        public void afterLast()
        Specified by:
        afterLast in interface org.hibernate.ScrollableResults<R>
      • isFirst

        public boolean isFirst()
        Specified by:
        isFirst in interface org.hibernate.ScrollableResults<R>
      • isLast

        public boolean isLast()
        Specified by:
        isLast in interface org.hibernate.ScrollableResults<R>
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.hibernate.ScrollableResults<R>
      • getRowNumber

        public int getRowNumber()
        Specified by:
        getRowNumber in interface org.hibernate.ScrollableResults<R>
      • position

        public boolean position​(int position)
        Specified by:
        position in interface org.hibernate.ScrollableResults<R>
      • setRowNumber

        public boolean setRowNumber​(int rowNumber)
        Specified by:
        setRowNumber in interface org.hibernate.ScrollableResults<R>
      • setFetchSize

        public void setFetchSize​(int i)
        Specified by:
        setFetchSize in interface org.hibernate.ScrollableResults<R>
      • isClosed

        public boolean isClosed()
        Specified by:
        isClosed in interface org.hibernate.query.spi.ScrollableResultsImplementor<R>
      • get

        public R get()
        Specified by:
        get in interface org.hibernate.ScrollableResults<R>