You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Joakim Soderberg <so...@gmail.com> on 2014/03/05 22:00:25 UTC
close dataset
Hi,
The jena documentation (
http://jena.apache.org/documentation/tdb/java_api.html )
mentions that it is important to close the dataset, but in the example code
(http://jena.apache.org/documentation/tdb/tdb_transactions.html) there is
no dataset.close, only dataset.end. Would an dataset.end be enough?
/j
Re: close dataset
Posted by Andy Seaborne <an...@apache.org>.
On 05/03/14 21:00, Joakim Soderberg wrote:
> Hi,
> The jena documentation (
> http://jena.apache.org/documentation/tdb/java_api.html )
> mentions that it is important to close the dataset, but in the example code
> (http://jena.apache.org/documentation/tdb/tdb_transactions.html) there is
> no dataset.close, only dataset.end. Would an dataset.end be enough?
Yes.
The Java API doc is BT (Before Transactions) and should be checked/cleaned.
When using transactions, there is no need to .close, indeed it's better
not to as the internal system is managing datasets. .close still exists
as doing anything for non-transactional/compatibility usage.
Andy
>
> /j
>