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, Iterator<Binding>, Printable, Closeable

public class QueryIterSort
extends QueryIterPlainWrapper

Sort a query iterator. The sort will happen in-memory unless the size of the iterator exceeds a configurable threshold. In that case, a disk sort is used.

See Also:
SortedDataBag

Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Constructor Summary
QueryIterSort(QueryIterator qIter, Comparator<Binding> comparator, ExecutionContext context)
           
QueryIterSort(QueryIterator qIter, 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,
                     List<SortCondition> conditions,
                     ExecutionContext context)

QueryIterSort

public QueryIterSort(QueryIterator qIter,
                     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



Licenced under the Apache License, Version 2.0