|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeIterator
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. . |
Object |
next()
Return the next RDFNode of the iteration. |
RDFNode |
nextNode()
Return the next RDFNode of the iteration. |
void |
remove()
Unsupported Operation. |
Method Detail |
---|
boolean hasNext()
hasNext
in interface Iterator
Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
- if there are no more nodes to be returned.
.RDFNode nextNode() throws NoSuchElementException
NoSuchElementException
- if there are no more nodes to be returned.
.void remove() throws NoSuchElementException
remove
in interface Iterator
NoSuchElementException
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 |