On 07/03/12 12:58, Paolo Castagna wrote:
Hi,
at one point, if TDBMaker we had a method called clearDatasetCache().

> TDB 0.9.0-incubating

Be careful - this is no longer the current build of trunk which is 0.9.1-incubating

What's the best way to interact with TDBMaker and clean/reset/flush caches?

The best way is not to :-)  TDBMaker isn't used any more by the API.

Warning - TDBMaker will be deleted unless there is a strong reason not to, because it is in parallel and separate from the StoreConnection management of transactional datasets.

To get the raw storage DatasetGraph,

    SystemTDB.getBaseDatasetGraphTDB(DatasetGraph)


If you are using TDBMaker directly:

   TDBMaker.reset()

exists.

To clear the cache of managed datasets things in the new transaction world:

StoreConnection.reset()

This does not abort active transactions (you can't).

There is

TDBMakerTxn.reset()

but since TDBMakerTxn is just a hop to move implementation foo out of (public) TDBFactory,

        Andy



Thanks,
Paolo

  [1]
https://github.com/castagna/tdbloader4/blob/master/src/test/java/org/apache/jena/tdbloader4/TestNodeTableRewriter.java

Reply via email to