Class QueryRunner
- java.lang.Object
-
- org.molgenis.vibe.core.database_processing.QueryRunner
-
-
Constructor Summary
Constructors Constructor Description QueryRunner(org.apache.jena.rdf.model.Model model, QueryString queryString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.jena.query.ResultSetgetResultSet()Retrieve the output from theModelbased on the givenqueryString.booleanhasNext()org.apache.jena.query.QuerySolutionnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
QueryRunner
public QueryRunner(org.apache.jena.rdf.model.Model model, QueryString queryString)
-
-
Method Detail
-
getResultSet
public org.apache.jena.query.ResultSet getResultSet()
Retrieve the output from theModelbased on the givenqueryString. Note that depending on the underlying implementation, the actual running of the query is done while retrieving the actual results.- Returns:
- See Also:
QueryExecution.execSelect()
-
hasNext
public boolean hasNext()
-
next
public org.apache.jena.query.QuerySolution next()
-
close
public void close()
- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
-