org.openrdf.sesame.sail.util
Class SingleStatementIterator

java.lang.Object
  extended byorg.openrdf.sesame.sail.util.SingleStatementIterator
All Implemented Interfaces:
StatementIterator

public class SingleStatementIterator
extends Object
implements StatementIterator

An iterator over a single statements.

Version:
$Revision: 1.4.4.2 $
Author:
Arjohn Kampman

Constructor Summary
SingleStatementIterator(Resource subject, Resource predicate, Value object)
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleStatementIterator

public SingleStatementIterator(Resource subject,
                               Resource predicate,
                               Value object)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: StatementIterator
Checks whether there are any more statements available.

Specified by:
hasNext in interface StatementIterator
Returns:
true if there are more statements available, false otherwise.

next

public Statement next()
Description copied from interface: StatementIterator
Gets the next statement.

Specified by:
next in interface StatementIterator
Returns:
the next statement.

close

public void close()
Description copied from interface: StatementIterator
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.

Specified by:
close in interface StatementIterator


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.