use of org.apache.jena.tdb2.store.DatasetGraphSwitchable in project jena by apache.
the class DatabaseMgr method compact.
/**
* Compact a datasets which must be a switchable TDB database.
* This is the normal dataset type for on-disk TDB2 databases.
*
* Deletes old database after successful compaction if `shouldDeleteOld` is `true`.
*
* @param container
* @param shouldDeleteOld
*/
public static void compact(DatasetGraph container, boolean shouldDeleteOld) {
DatasetGraphSwitchable dsg = requireSwitchable(container);
DatabaseOps.compact(dsg, shouldDeleteOld);
}
Aggregations