|
||||||||||
| 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 | |
|---|---|
void |
cancel()
Cancels the compaction progress, setting things to 0. |
void |
complete()
Marks the compaction as complete by setting total to current KV count; Total KV count is an estimate, so there might be a discrepancy otherwise. |
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 compacted| Method Detail |
|---|
public float getProgressPct()
public void cancel()
public void complete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||