de.fuberlin.wiwiss.d2rq.rdql
Class PatternQueryCombiner.PQCResultIterator

java.lang.Object
  extended bycom.hp.hpl.jena.util.iterator.NiceIterator
      extended byde.fuberlin.wiwiss.d2rq.rdql.PatternQueryCombiner.PQCResultIterator
All Implemented Interfaces:
com.hp.hpl.jena.util.iterator.ClosableIterator, com.hp.hpl.jena.util.iterator.ExtendedIterator, java.util.Iterator
Enclosing class:
PatternQueryCombiner

private class PatternQueryCombiner.PQCResultIterator
extends com.hp.hpl.jena.util.iterator.NiceIterator
implements com.hp.hpl.jena.util.iterator.ClosableIterator

Iterator for PatternQueryCombiner results.

Author:
jgarbers

Field Summary
protected  TripleQuery[] conjunction
          next TripleQuery conjunction to be processed
protected  ConjunctionIterator conjunctionsIterator
          Iterator for TripleQuery conjunctions
protected  boolean didPrefetch
          iterator helper
protected  com.hp.hpl.jena.graph.Triple[] prefetchedResult
          iterator helper
(package private)  CombinedTripleResultSet resultSet
          iterator that returns triple arrays for database rows
 
Fields inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
 
Constructor Summary
PatternQueryCombiner.PQCResultIterator()
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 java.lang.Object next()
           
protected  void prefetch()
          Tries to prefetch a prefetchedResult.
 void remove()
           
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, close, emptyIterator, ensureHasNext, filterDrop, filterKeep, mapWith, noElements, removeNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conjunctionsIterator

protected ConjunctionIterator conjunctionsIterator
Iterator for TripleQuery conjunctions


conjunction

protected TripleQuery[] conjunction
next TripleQuery conjunction to be processed


prefetchedResult

protected com.hp.hpl.jena.graph.Triple[] prefetchedResult
iterator helper


didPrefetch

protected boolean didPrefetch
iterator helper


resultSet

CombinedTripleResultSet resultSet
iterator that returns triple arrays for database rows

Constructor Detail

PatternQueryCombiner.PQCResultIterator

public PatternQueryCombiner.PQCResultIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

prefetch

protected void prefetch()
Tries to prefetch a prefetchedResult. There are two resources to draw from: 1. another row from the current SQL query (resultSet) 2. a new SQL query can be started Only those TripleQuery conjunctions are considered that may have solutions in terms of NodeConstraints on shared variables.


close

public void close()
Specified by:
close in interface com.hp.hpl.jena.util.iterator.ClosableIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator