Class SnapshotMerger
java.lang.Object
io.datarouter.filesystem.snapshot.combine.SnapshotMerger
public class SnapshotMerger extends Object
Merge snapshots in the mergeGroup until there are fewer than the mergeFactor, then merge the remaining into
the destinationGroup.
-
Constructor Summary
Constructors Constructor Description SnapshotMerger(Supplier<Boolean> shouldStop, SnapshotGroup mergeGroup, SnapshotGroup destinationGroup, ExecutorService readExec, ExecutorService writeExec, SnapshotWriterConfig writerConfig, int scanNumBlocks, int mergeFactor) -
Method Summary
Modifier and Type Method Description voidmerge()
-
Constructor Details
-
SnapshotMerger
public SnapshotMerger(Supplier<Boolean> shouldStop, SnapshotGroup mergeGroup, SnapshotGroup destinationGroup, ExecutorService readExec, ExecutorService writeExec, SnapshotWriterConfig writerConfig, int scanNumBlocks, int mergeFactor)
-
-
Method Details
-
merge
public void merge()
-