|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.compactions.CompactSelection
public class CompactSelection
Constructor Summary | |
---|---|
CompactSelection(org.apache.hadoop.conf.Configuration conf,
List<StoreFile> filesToCompact)
|
Method Summary | |
---|---|
void |
clearSubList(int start,
int end)
|
void |
emptyFileList()
Removes all files from the current compaction list, and resets off peak compactions is set. |
void |
finishRequest()
The current compaction finished, so reset the off peak compactions count if this was an off peak compaction. |
double |
getCompactSelectionRatio()
If the current hour falls in the off peak times and there are no outstanding off peak compactions, the current compaction is promoted to an off peak compaction. |
List<StoreFile> |
getFilesToCompact()
|
CompactSelection |
getSubList(int start,
int end)
|
boolean |
isOffPeakCompaction()
|
CompactSelection |
selectExpiredStoreFilesToCompact(long maxExpiredTimeStamp)
Select the expired store files to compact |
CompactSelection |
subList(int start,
int end)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompactSelection(org.apache.hadoop.conf.Configuration conf, List<StoreFile> filesToCompact)
Method Detail |
---|
public CompactSelection selectExpiredStoreFilesToCompact(long maxExpiredTimeStamp)
maxExpiredTimeStamp
- The store file will be marked as expired if its max time stamp is
less than this maxExpiredTimeStamp.
public double getCompactSelectionRatio()
currentHour
-
public void finishRequest()
public List<StoreFile> getFilesToCompact()
public void emptyFileList()
public boolean isOffPeakCompaction()
public CompactSelection subList(int start, int end)
public CompactSelection getSubList(int start, int end)
public void clearSubList(int start, int end)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |