Class SearchResultIterator<T>

java.lang.Object
com.lexmark.saperion.search.SearchResultIterator<T>
Type Parameters:
T - item type
All Implemented Interfaces:
Iterator<T>

public class SearchResultIterator<T> extends Object implements 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

    Constructors
    Constructor
    Description
    SearchResultIterator(com.lexmark.saperion.search.SearchExecutionService<T> executionService, com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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)
     
     
    void
     

    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()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>
    • 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)