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

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
All Implemented Interfaces:
QueryIterator, PrintSerializable, Iterator<Binding>, Printable, Closeable
Direct Known Subclasses:
QueryIterGroup, QueryIterSort, QueryIterTopN

public class QueryIterPlainWrapper
extends QueryIter

Turn an normal java.util.Iterator (of Bindings) into a QueryIterator


Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Constructor Summary
QueryIterPlainWrapper(Iterator<Binding> iter)
           
QueryIterPlainWrapper(Iterator<Binding> iter, ExecutionContext context)
           
 
Method Summary
 void output(IndentedWriter out, SerializationContext sCxt)
           
 void setIterator(Iterator<Binding> iterator)
          Preferrable to use a constructor - but sometimes that is inconvenient so pass null in the constructor and then call this before the iterator is used.
 
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

QueryIterPlainWrapper

public QueryIterPlainWrapper(Iterator<Binding> iter)

QueryIterPlainWrapper

public QueryIterPlainWrapper(Iterator<Binding> iter,
                             ExecutionContext context)
Method Detail

setIterator

public void setIterator(Iterator<Binding> iterator)
Preferrable to use a constructor - but sometimes that is inconvenient so pass null in the constructor and then call this before the iterator is used.


output

public void output(IndentedWriter out,
                   SerializationContext sCxt)
Specified by:
output in interface PrintSerializable
Overrides:
output in class QueryIter


Licenced under the Apache License, Version 2.0