|
||||||||||
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. |
RDFNode |
next()
Return the next RDFNode of the iteration. |
RDFNode |
nextNode()
Return the next RDFNode of the iteration. |
void |
remove()
Unsupported Operation. |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator |
---|
andThen, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
Method Detail |
---|
boolean hasNext()
hasNext
in interface Iterator<RDFNode>
RDFNode next() throws NoSuchElementException
next
in interface Iterator<RDFNode>
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<RDFNode>
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 com.hp.hpl.jena.util.iterator.ClosableIterator<RDFNode>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |