org.openrdf.sesame.sail
Interface ValueIterator

All Known Subinterfaces:
LiteralIterator, ResourceIterator
All Known Implementing Classes:
EmptyLiteralIterator, EmptyResourceIterator, EmptyValueIterator, MemLiteralIterator, MemResourceIterator, NestedResourceIterator, NestedValueIterator, RdbmsLiteralIterator, RdbmsResourceIterator, RdbmsValueIterator, ResourceCollectionIterator, ResourceFilterIterator, SingleResourceIterator, SingleValueIterator, StatementObjectIterator, StatementSubjectIterator, ValueCollectionIterator

public interface ValueIterator

An iterator over Values that are stored in RDF Sails.

Version:
$Revision: 1.6.2.2 $
Author:
Arjohn Kampman

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

Method Detail

hasNext

public boolean hasNext()
                throws QueryEvaluationException
Checks whether there are any more values available.

Returns:
true if there are more values available, false otherwise.
Throws:
QueryEvaluationException

next

public Value next()
           throws QueryEvaluationException
Gets the next value.

Returns:
the next value.
Throws:
NoSuchElementException - If the iterator has no more results
QueryEvaluationException

close

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



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