|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.compactions.CompactionProgress
@InterfaceAudience.Private public class CompactionProgress
This class holds information relevant for tracking the progress of a compaction.
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.
Field Summary | |
---|---|
long |
currentCompactedKVs
the completed count of key values in currently running compaction |
long |
totalCompactingKVs
the total compacting key values in currently running compaction |
Constructor Summary | |
---|---|
CompactionProgress(long totalCompactingKVs)
Constructor |
Method Summary | |
---|---|
float |
getProgressPct()
getter for calculated percent complete |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long totalCompactingKVs
public long currentCompactedKVs
Constructor Detail |
---|
public CompactionProgress(long totalCompactingKVs)
totalCompactingKVs
- the total Key/Value pairs to be compactedMethod Detail |
---|
public float getProgressPct()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |