org.apache.hadoop.hbase.regionserver.compactions
Class CompactionProgress

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.compactions.CompactionProgress

public class CompactionProgress
extends Object

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

totalCompactingKVs

public long totalCompactingKVs
the total compacting key values in currently running compaction


currentCompactedKVs

public long currentCompactedKVs
the completed count of key values in currently running compaction

Constructor Detail

CompactionProgress

public CompactionProgress(long totalCompactingKVs)
Constructor

Parameters:
totalCompactingKVs - the total Key/Value pairs to be compacted
Method Detail

getProgressPct

public float getProgressPct()
getter for calculated percent complete

Returns:
float


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.