public class CompactSelection extends Object
Constructor and Description |
---|
CompactSelection(org.apache.hadoop.conf.Configuration conf,
List<StoreFile> filesToCompact) |
Modifier and Type | Method and Description |
---|---|
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) |
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 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)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.