org.d2rq.engine
Class QueryIterTableSQL
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
org.d2rq.engine.QueryIterTableSQL
- All Implemented Interfaces:
- QueryIterator, PrintSerializable, Iterator<Binding>, Printable, Closeable
public class QueryIterTableSQL
- extends QueryIter
A QueryIterator
over the bindings produced by a
NodeRelation
. Works by running the underlying SQL
query using a SQLIterator
.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
create
public static QueryIterator create(SQLConnection connection,
DatabaseOp table,
Collection<BindingMaker> bindingMakers,
ExecutionContext execCxt)
- Creates an instance, or a simpler QueryIterator
if optimization is possible (e.g., the relation is empty).
- Returns:
- A query iterator over the contents of the relation
create
public static QueryIterator create(NodeRelation table,
ExecutionContext execCxt)
- Creates an instance, or a simpler QueryIterator
if optimization is possible (e.g., the relation is empty).
- Returns:
- A query iterator over the contents of the node relation
hasNextBinding
protected boolean hasNextBinding()
- Specified by:
hasNextBinding
in class QueryIteratorBase
moveToNextBinding
protected Binding moveToNextBinding()
- Specified by:
moveToNextBinding
in class QueryIteratorBase
closeIterator
protected void closeIterator()
- Specified by:
closeIterator
in class QueryIteratorBase
requestCancel
protected void requestCancel()
- Specified by:
requestCancel
in class QueryIteratorBase