Package org.apache.jena.rdf.model
Interface StmtIterator
-
- All Superinterfaces:
ClosableIterator<Statement>
,Closeable
,ExtendedIterator<Statement>
,java.util.Iterator<Statement>
,IteratorCloseable<Statement>
- All Known Implementing Classes:
StmtIteratorImpl
public interface StmtIterator extends ExtendedIterator<Statement>
An iterator which returns RDF Statements.RDF iterators are standard Java iterators, except that they have extras method to return specifically typed objects, in this case RDF Statements and have a
close()
method that should be called to free resources if the application does not complete the iteration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Statement
nextStatement()
Return the next Statement of the iteration.default Model
toModel()
Answer a Model of the [remaining] Statements of this iterator, consuming this iterator.-
Methods inherited from interface org.apache.jena.util.iterator.ClosableIterator
close
-
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSet
-
-
-
-
Method Detail
-
nextStatement
Statement nextStatement() throws java.util.NoSuchElementException
Return the next Statement of the iteration.- Returns:
- The next Resource from the iteration.
- Throws:
java.util.NoSuchElementException
- if there are no more to be returned.
-
toModel
default Model toModel()
Answer a Model of the [remaining] Statements of this iterator, consuming this iterator.
-
-