Class ScrollerIteratorAdaptor<E>
java.lang.Object
org.infinispan.query.impl.ScrollerIteratorAdaptor<E>
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,ClosableIteratorWithCount<E>,CloseableIterator<E>
Adaptor to use a link
SearchScroll as an iterator.- Since:
- 12.0
-
Constructor Summary
ConstructorsConstructorDescriptionScrollerIteratorAdaptor(org.hibernate.search.engine.search.query.SearchScroll<E> scroll) -
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
-
ScrollerIteratorAdaptor
-
-
Method Details
-
hasNext
-
next
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<E>
-
count
- Specified by:
countin interfaceClosableIteratorWithCount<E>- Returns:
- An object containing information about the number of hits from the query, ignoring pagination.
-