Package com.lexmark.saperion.search
Class SearchResultIterator<T>
java.lang.Object
com.lexmark.saperion.search.SearchResultIterator<T>
- Type Parameters:
T
- item type
- All Implemented Interfaces:
Iterator<T>
The search result iterator allows to iterate seamlessly over huge result sets. The result set content is dynamically
loaded by the iterator. Resource loading is implemented through paged queries.
- Author:
- owaeldrich
-
Constructor Summary
ConstructorsConstructorDescriptionSearchResultIterator
(com.lexmark.saperion.search.SearchExecutionService<T> executionService, com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
static <ItemType> Iterable<ItemType>
list
(com.lexmark.saperion.search.SearchExecutionService<ItemType> executionService) static <ItemType> Iterable<ItemType>
list
(com.lexmark.saperion.search.SearchExecutionService<ItemType> executionService, com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging) next()
void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
SearchResultIterator
public SearchResultIterator(com.lexmark.saperion.search.SearchExecutionService<T> executionService, com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging)
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
list
public static <ItemType> Iterable<ItemType> list(com.lexmark.saperion.search.SearchExecutionService<ItemType> executionService) -
list
public static <ItemType> Iterable<ItemType> list(com.lexmark.saperion.search.SearchExecutionService<ItemType> executionService, com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging)
-