Class ResultsStAX
java.lang.Object
org.apache.jena.riot.resultset.rw.ResultsStAX
- All Implemented Interfaces:
Iterator<QuerySolution>,org.apache.jena.atlas.lib.Closeable,ResultSet
Public only for use by XMLOutput (legacy)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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?booleanbooleannext()Moves onto the next result.Move to the next binding (low level)Moves onto the next result (legacy - use .next()).static SPARQLResultread(InputStream in, Model model, Context context) static SPARQLResultvoidremove()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface org.apache.jena.query.ResultSet
materialise, rewindable
-
Method Details
-
read
-
read
-
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
-
nextBinding
Description copied from interface:ResultSetMove to the next binding (low level)- Specified by:
nextBindingin interfaceResultSet
-
nextSolution
Description copied from interface:ResultSetMoves onto the next result (legacy - use .next()).- Specified by:
nextSolutionin interfaceResultSet
-
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
-
isOrdered
public boolean isOrdered() -
isDistinct
public boolean isDistinct() -
getResourceModel
Description copied from interface:ResultSetGet the model that resources are created against - may be null- Specified by:
getResourceModelin interfaceResultSet
-
remove
public void remove()- Specified by:
removein interfaceIterator<QuerySolution>
-
close
public void close()
-