Search in sources :

Example 1 with ResultBinding

use of org.apache.jena.sparql.core.ResultBinding in project jena by apache.

the class ResultSetStream method nextSolution.

/** Moves onto the next result possibility.
     *  The returned object is actual the binding for this
     *  result.
     */
@Override
public QuerySolution nextSolution() {
    if (queryExecutionIter == null)
        //             ( queryExecution != null && ! queryExecution.isActive() ) )
        throw new NoSuchElementException(this.getClass() + ".next");
    Binding binding = nextBinding();
    currentQuerySolution = new ResultBinding(model, binding);
    return currentQuerySolution;
}
Also used : Binding(org.apache.jena.sparql.engine.binding.Binding) ResultBinding(org.apache.jena.sparql.core.ResultBinding) NoSuchElementException(java.util.NoSuchElementException) ResultBinding(org.apache.jena.sparql.core.ResultBinding)

Aggregations

NoSuchElementException (java.util.NoSuchElementException)1 ResultBinding (org.apache.jena.sparql.core.ResultBinding)1 Binding (org.apache.jena.sparql.engine.binding.Binding)1