public class CompactionProgress extends Object
The metrics tracked allow one to calculate the percent completion of the compaction based on the number of Key/Value pairs already compacted vs. total amount scheduled to be compacted.
|Modifier and Type||Field and Description|
the completed count of key values in currently running compaction
the total compacting key values in currently running compaction
|Constructor and Description|
public long totalCompactingKVs
public long currentCompactedKVs
public CompactionProgress(long totalCompactingKVs)
totalCompactingKVs- the total Key/Value pairs to be compacted
public float getProgressPct()
Copyright © 2015 The Apache Software Foundation. All rights reserved.