jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From graham <gra...@orangedogsoftware.com>
Subject Closing Copies of Result Sets
Date Fri, 02 Apr 2021 10:58:56 GMT
Hi

I have a copy of a result set, made by doing

     try (QueryExecution qexec = QueryExecutionFactory.create(query, model))
     {
                 ResultSet results = qexec.execSelect();

                 return ResultSetFactory.copyResults(results);

     }

I presume I don't have to close the copy of the result set since it's in 
memory?

Likewise if I have an in memory Model which I query by exec-ing a SPARQL 
query as per the above (without the copy), I presume I don't have to 
close that either?

thanks

graham

-- 
                       Je suis pour le communisme
                       Je suis pour le socialisme
                       Je suis pour le capitalisme
                      Parce que je suis opportuniste


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message