com.hp.hpl.jena.sparql.engine.iterator
Class QueryIterSlice

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
          extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIter
              extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIter1
                  extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIterSlice
All Implemented Interfaces:
QueryIterator, PrintSerializable, Iterator<Binding>, Printable, Closeable

public class QueryIterSlice
extends QueryIter1

Iterator until a limit is reached.


Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Constructor Summary
QueryIterSlice(QueryIterator cIter, long startPosition, long numItems, ExecutionContext context)
          Create an iterator that limits the number of returns of another CloseableIterator.
 
Method Summary
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIter1
output
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIter
close, getExecContext, getIteratorNumber, makeTracked, materialize
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
abort, cancel, cancelAllowContinue, debug, hasNext, next, nextBinding, remove
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
output, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 
Methods inherited from interface org.openjena.atlas.io.Printable
output
 

Constructor Detail

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 - Maximium number of items to yield.


Licenced under the Apache License, Version 2.0