Class QueryIterSlice

All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.io.Printable, org.apache.jena.atlas.lib.Closeable, QueryIterator, PrintSerializable

public class QueryIterSlice extends QueryIter1
Iterator until a limit is reached.
  • Constructor Details

    • QueryIterSlice

      public QueryIterSlice(QueryIterator cIter, long startPosition, long numItems, ExecutionContext context)
      Create an iterator that limits the number of returns of another CloseableIterator.
      Parameters:
      cIter - The closable iterator to throttle
      startPosition - Offset of start after - 0 is the no-op.
      numItems - Maximum number of items to yield.