org.d2rq.engine
Class QueryIterTableSQL

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 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)

Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Method Summary
protected  void closeIterator()
           
static QueryIterator create(NodeRelation table, ExecutionContext execCxt)
          Creates an instance, or a simpler QueryIterator if optimization is possible (e.g., the relation is empty).
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).
protected  boolean hasNextBinding()
           
protected  Binding moveToNextBinding()
           
protected  void requestCancel()
           
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIter
close, getExecContext, getIteratorNumber, makeTracked, materialize, materialize, output
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
cancel, debug, hasNext, isFinished, next, nextBinding, performClose, performRequestCancel, remove
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
output, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
 

Method Detail

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