org.openrdf.rdf2go
Class QueryRowIterator

java.lang.Object
  extended by org.openrdf.rdf2go.QueryRowIterator
All Implemented Interfaces:
java.util.Iterator<QueryRow>, ClosableIterator<QueryRow>

public class QueryRowIterator
extends java.lang.Object
implements ClosableIterator<QueryRow>

Iterator over an OpenRDF TupleQueryResult that converts its BindingSets to RDF2Go QueryRows on demand. This iterator closes automatically after returning the last QueryRow.


Constructor Summary
QueryRowIterator(org.openrdf.query.TupleQueryResult queryResult)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 boolean hasNext()
           
 QueryRow next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryRowIterator

public QueryRowIterator(org.openrdf.query.TupleQueryResult queryResult)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<QueryRow>
Specified by:
hasNext in interface ClosableIterator<QueryRow>

next

public QueryRow next()
Specified by:
next in interface java.util.Iterator<QueryRow>
Specified by:
next in interface ClosableIterator<QueryRow>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<QueryRow>
Specified by:
remove in interface ClosableIterator<QueryRow>

close

public void close()
Specified by:
close in interface ClosableIterator<QueryRow>

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable


Copyright © 2001-2008 FZI. All Rights Reserved.