Revision GC command line tool
More helper methods to access package private methods
@@ -68,6 +68,15 @@ public class DocumentNodeStoreHelper {
System.out.println("Collected in " + sw.stop());
}
+ public static VersionGCSupport createVersionGCSupport(DocumentMK.Builder builder) {
+ return builder.createVersionGCSupport();
+ }
+
+ public static VersionGarbageCollector createVersionGC(
+ DocumentNodeStore nodeStore, VersionGCSupport gcSupport) {
+ return new VersionGarbageCollector(nodeStore, gcSupport);
+ }
+
private static Iterable<BlobReferences> scan(DocumentNodeStore store,
Comparator<BlobReferences> comparator,
int num) {
