Class DelegatingCursor.PartialResult<T>

java.lang.Object
org.springframework.data.solr.core.query.result.DelegatingCursor.PartialResult<T>
Type Parameters:
T -
All Implemented Interfaces:
Iterable<T>
Enclosing class:
DelegatingCursor<T>

public static class DelegatingCursor.PartialResult<T> extends Object implements Iterable<T>
DelegatingCursor.PartialResult provided by a round trip to SolrClient loading data for an iteration. Also holds the cursor mark to use next.
  • Constructor Details

    • PartialResult

      public PartialResult(String nextCursorMark, @Nullable Collection<T> items)
  • Method Details

    • getNextCursorMark

      public String getNextCursorMark()
      Get the next cursor mark to use.
      Returns:
    • getItems

      public Collection<T> getItems()
      Get items returned from server.
      Returns:
      never null
    • iterator

      public Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T>