org.openrdf.sesame.sail
Interface StatementIterator

All Known Implementing Classes:
Cursor

public interface StatementIterator

An iterator over statements that are stored in RDF Sails.


Method Summary
 void close()
          Closes the iterator and frees any resources that it uses (e.g.
 boolean hasNext()
          Checks whether there are any more statements available.
 Statement next()
          Gets the next statement.
 

Method Detail

hasNext

public boolean hasNext()
Checks whether there are any more statements available.

Returns:
true if there are more statements available, false otherwise.

next

public Statement next()
Gets the next statement.

Returns:
the next statement.

close

public void close()
Closes the iterator and frees any resources that it uses (e.g. connections to databases). Every StatementIterator should be properly closed when it has returned all of its statements, or when it is no longer needed.