From users-return-22115-archive-asf-public=cust-asf.ponee.io@jena.apache.org Fri Apr 2 10:59:12 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 433D6180181 for ; Fri, 2 Apr 2021 12:59:12 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 6F5483F436 for ; Fri, 2 Apr 2021 10:59:11 +0000 (UTC) Received: (qmail 84785 invoked by uid 500); 2 Apr 2021 10:59:10 -0000 Mailing-List: contact users-help@jena.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jena.apache.org Delivered-To: mailing list users@jena.apache.org Received: (qmail 84773 invoked by uid 99); 2 Apr 2021 10:59:10 -0000 Received: from spamproc1-he-fi.apache.org (HELO spamproc1-he-fi.apache.org) (95.217.134.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Apr 2021 10:59:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamproc1-he-fi.apache.org (ASF Mail Server at spamproc1-he-fi.apache.org) with ESMTP id 8FB7DC02D8 for ; Fri, 2 Apr 2021 10:59:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamproc1-he-fi.apache.org X-Spam-Flag: NO X-Spam-Score: 0.602 X-Spam-Level: X-Spam-Status: No, score=0.602 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=0.2, KHOP_HELO_FCRDNS=0.398, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([116.203.227.195]) by localhost (spamproc1-he-fi.apache.org [95.217.134.168]) (amavisd-new, port 10024) with ESMTP id uv6zXKQk3jap for ; Fri, 2 Apr 2021 10:59:08 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=216.40.44.182; helo=smtprelay.hostedemail.com; envelope-from=graham@orangedogsoftware.com; receiver= Received: from smtprelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 9E6C77FCEA for ; Fri, 2 Apr 2021 10:59:08 +0000 (UTC) Received: from omf01.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id BD273182CED2A for ; Fri, 2 Apr 2021 10:59:00 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: graham@orangedogsoftware.com) by omf01.hostedemail.com (Postfix) with ESMTPA id 0EDE517279 for ; Fri, 2 Apr 2021 10:58:59 +0000 (UTC) To: "users@jena.apache.org" From: graham Subject: Closing Copies of Result Sets Message-ID: <71f49bdc-68ac-a979-3072-f2708578359e@orangedogsoftware.com> Date: Fri, 2 Apr 2021 23:58:56 +1300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------0BFBE99A72002BE88C0860E1" Content-Language: en-NZ X-Rspamd-Queue-Id: 0EDE517279 X-Stat-Signature: qkr8a8mfwhancm7mw3ruuxmb5wmqfdz8 X-Rspamd-Server: rspamout01 X-Session-Marker: 67726168616D406F72616E6765646F67736F6674776172652E636F6D X-Session-ID: U2FsdGVkX1/OFVDqbhdeKIJqia/2o8L8Z9oy6WtQCmQ= X-HE-Tag: 1617361139-219965 --------------0BFBE99A72002BE88C0860E1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------0BFBE99A72002BE88C0860E1--