java.lang.Object
org.apache.jena.sparql.engine.ResultSetCheckCondition
- All Implemented Interfaces:
Iterator<QuerySolution>,ResultSet
ResultSet wrapper that check whether some condition is true
(e.g. the QueryExecution has not been closed).
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetCheckCondition(ResultSet other, QueryExecution qExec) ResultSetCheckCondition(ResultSet other, org.apache.jena.sparql.engine.ResultSetCheckCondition.Condition condition) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidforEachRemaining(Consumer<? super QuerySolution> action) Attention: The check is only done once before the first consumer accept call.Get the model that resources are created against - may be nullGet the variable names for the projection.intReturn the "row" number for the current iterator itembooleanhasNext()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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.query.ResultSet
materialise, rewindable
-
Constructor Details
-
ResultSetCheckCondition
-
ResultSetCheckCondition
public ResultSetCheckCondition(ResultSet other, org.apache.jena.sparql.engine.ResultSetCheckCondition.Condition condition)
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:ResultSetIs there another result?- Specified by:
hasNextin interfaceIterator<QuerySolution>- Specified by:
hasNextin interfaceResultSet
-
next
Description copied from interface:ResultSetMoves onto the next result.- Specified by:
nextin interfaceIterator<QuerySolution>- Specified by:
nextin interfaceResultSet
-
nextSolution
Description copied from interface:ResultSetMoves onto the next result (legacy - use .next()).- Specified by:
nextSolutionin interfaceResultSet
-
nextBinding
Description copied from interface:ResultSetMove to the next binding (low level)- Specified by:
nextBindingin interfaceResultSet
-
close
public void close() -
forEachRemaining
Attention: The check is only done once before the first consumer accept call.- Specified by:
forEachRemainingin interfaceIterator<QuerySolution>- Specified by:
forEachRemainingin interfaceResultSet- Parameters:
action- The action to be performed for each element
-
getRowNumber
public int getRowNumber()Description copied from interface:ResultSetReturn the "row" number for the current iterator item- Specified by:
getRowNumberin interfaceResultSet
-
getResultVars
Description copied from interface:ResultSetGet the variable names for the projection. Not all query solutions from a result have every variable defined.- Specified by:
getResultVarsin interfaceResultSet
-
getResourceModel
Description copied from interface:ResultSetGet the model that resources are created against - may be null- Specified by:
getResourceModelin interfaceResultSet
-