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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
forEachRemaining
(Consumer<? super QuerySolution> action) boolean
hasNext()
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, getRowNumber
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.query.ResultSet
materialise, rewindable
-
Constructor Details
-
ResultSetOnClose
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:ResultSet
Is there another result?- Specified by:
hasNext
in interfaceIterator<QuerySolution>
- Specified by:
hasNext
in interfaceResultSet
- Overrides:
hasNext
in classResultSetWrapper
-
next
Description copied from interface:ResultSet
Moves onto the next result.- Specified by:
next
in interfaceIterator<QuerySolution>
- Specified by:
next
in interfaceResultSet
- Overrides:
next
in classResultSetWrapper
-
forEachRemaining
- Specified by:
forEachRemaining
in interfaceIterator<QuerySolution>
- Specified by:
forEachRemaining
in interfaceResultSet
- Overrides:
forEachRemaining
in classResultSetWrapper
-
nextSolution
Description copied from interface:ResultSet
Moves onto the next result (legacy - use .next()).- Specified by:
nextSolution
in interfaceResultSet
- Overrides:
nextSolution
in classResultSetWrapper
-
nextBinding
Description copied from interface:ResultSet
Move to the next binding (low level)- Specified by:
nextBinding
in interfaceResultSet
- Overrides:
nextBinding
in classResultSetWrapper
-
close
public void close()- Specified by:
close
in interfaceResultSet
- Overrides:
close
in classResultSetWrapper
-