com.hp.hpl.jena.sparql.engine.iterator
Class QueryIterPlainWrapper
java.lang.Object
com.hp.hpl.jena.sparql.util.PrintSerializableBase
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
com.hp.hpl.jena.sparql.engine.iterator.QueryIter
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
QueryIterPlainWrapper
public QueryIterPlainWrapper(Iterator<Binding> iter)
QueryIterPlainWrapper
public QueryIterPlainWrapper(Iterator<Binding> iter,
ExecutionContext context)
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