de.fuberlin.wiwiss.d2rq.fastpath
Class ApplyTripleMakerRowIterator

java.lang.Object
  extended by de.fuberlin.wiwiss.d2rq.fastpath.ApplyTripleMakerRowIterator
All Implemented Interfaces:
ClosableIterator, Iterator

public class ApplyTripleMakerRowIterator
extends Object
implements ClosableIterator

Iterates over the ResultRows from one SQL query and transforms them into triples. Has a collection of TripleMakers. Each TripleMaker is applied to each row in the result set. This produces an array of triples for each result row. The class is an iterator over these triple arrays.

Version:
$Id: ApplyTripleMakerRowIterator.java,v 1.1 2006/09/18 16:59:26 cyganiak Exp $
Author:
jgarbers

Constructor Summary
ApplyTripleMakerRowIterator(ClosableIterator sqlIterator, TripleMaker[] tripleMakers)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 Object next()
           
 Triple[] nextRow()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyTripleMakerRowIterator

public ApplyTripleMakerRowIterator(ClosableIterator sqlIterator,
                                   TripleMaker[] tripleMakers)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

nextRow

public Triple[] nextRow()

next

public Object next()
Specified by:
next in interface Iterator

close

public void close()
Specified by:
close in interface ClosableIterator

remove

public void remove()
Specified by:
remove in interface Iterator