|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An iterator which returns RDF nodes.
RDF iterators are standard Java iterators, except that they
have an extra method that returns specifically typed objects,
in this case RDF nodes, and have a close()
method.
thatshould be called to free resources if the application does
not complete the iteration.
Method Summary | |
void |
close()
Terminate the iteration and free up resources. |
boolean |
hasNext()
Determine if there any more values in the iteration. . |
java.lang.Object |
next()
Return the next RDFNode of the iteration. |
RDFNode |
nextNode()
Return the next RDFNode of the iteration. |
void |
remove()
Unsupported Operation. |
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
- if there are no more nodes to be returned.
.public RDFNode nextNode() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there are no more nodes to be returned.
.public void remove() throws java.util.NoSuchElementException
remove
in interface java.util.Iterator
java.util.NoSuchElementException
public void close()
Some implementations, e.g. on relational databases, hold resources while the iterator still exists. These will normally be freed when the iteration completes. However, if an application wishes to ensure they are freed without completing the iteration, this method should be called.
.
close
in interface ClosableIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |