Jan Martin Keil created JENA-1956:
-------------------------------------

             Summary: ResultSet should implement Iterable
                 Key: JENA-1956
                 URL: https://issues.apache.org/jira/browse/JENA-1956
             Project: Apache Jena
          Issue Type: Improvement
            Reporter: Jan Martin Keil


It would significantly ease query result processing, if ResultSet would 
implement Iterable. That would allow to write
{code:java}
for (QuerySolution result : QueryExecutionFactory.create(query, 
model).execSelect()) {
  …
}
{code}
instead of
{code:java}
ResultSet results = QueryExecutionFactory.create(query, model).execSelect();
while (results.hasNext()) {
  QuerySolution result = results.next();
  …
}
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to