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

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.QueryIterPlainWrapper
                  extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIterSort
All Implemented Interfaces:
QueryIterator, PrintSerializable, java.util.Iterator<Binding>, Printable, Closeable

public class QueryIterSort
extends QueryIterPlainWrapper

Sort a query iterator. Uses an in-memory sort, so limiting the size of iterators that can be handled.


Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Constructor Summary
QueryIterSort(QueryIterator qIter, java.util.Comparator<Binding> comparator, ExecutionContext context)
           
QueryIterSort(QueryIterator qIter, java.util.List<SortCondition> conditions, ExecutionContext context)
           
 
Method Summary
 void requestCancel()
          Propagates the cancellation request - called asynchronously with the iterator itself
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper
output, setIterator
 
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

QueryIterSort

public QueryIterSort(QueryIterator qIter,
                     java.util.List<SortCondition> conditions,
                     ExecutionContext context)

QueryIterSort

public QueryIterSort(QueryIterator qIter,
                     java.util.Comparator<Binding> comparator,
                     ExecutionContext context)
Method Detail

requestCancel

public void requestCancel()
Description copied from class: QueryIteratorBase
Propagates the cancellation request - called asynchronously with the iterator itself



Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.