java.lang.Object
org.apache.jena.sparql.resultset.ResultSetWrapper
org.apache.jena.riot.resultset.ResultSetOnClose
- All Implemented Interfaces:
Iterator<QuerySolution>,ResultSet
- Direct Known Subclasses:
ResultSetCloseable
Perform an action on a result set when iteration finishes
or
close() is called.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidforEachRemaining(Consumer<? super QuerySolution> action) booleanhasNext()Is there another result?next()Moves onto the next result.Move to the next binding (low level)Moves onto the next result (legacy - use .next()).Methods inherited from class org.apache.jena.sparql.resultset.ResultSetWrapper
getResourceModel, getResultVars, getRowNumberMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.query.ResultSet
materialise, rewindable
-
Constructor Details
-
ResultSetOnClose
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:ResultSetIs there another result?- Specified by:
hasNextin interfaceIterator<QuerySolution>- Specified by:
hasNextin interfaceResultSet- Overrides:
hasNextin classResultSetWrapper
-
next
Description copied from interface:ResultSetMoves onto the next result.- Specified by:
nextin interfaceIterator<QuerySolution>- Specified by:
nextin interfaceResultSet- Overrides:
nextin classResultSetWrapper
-
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<QuerySolution>- Specified by:
forEachRemainingin interfaceResultSet- Overrides:
forEachRemainingin classResultSetWrapper
-
nextSolution
Description copied from interface:ResultSetMoves onto the next result (legacy - use .next()).- Specified by:
nextSolutionin interfaceResultSet- Overrides:
nextSolutionin classResultSetWrapper
-
nextBinding
Description copied from interface:ResultSetMove to the next binding (low level)- Specified by:
nextBindingin interfaceResultSet- Overrides:
nextBindingin classResultSetWrapper
-
close
public void close()- Specified by:
closein interfaceResultSet- Overrides:
closein classResultSetWrapper
-