|
||||||||||
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. . |
java.lang.Object |
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 java.util.Iterator
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.
.RDFNode nextNode() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if there are no more nodes to be returned.
.void remove() throws java.util.NoSuchElementException
remove
in interface java.util.Iterator
java.util.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 |