@InterfaceAudience.LimitedPrivate(value="Configuration") public class DateTieredCompactionPolicy extends SortedCompactionPolicy
comConf, storeConfigInfo| Constructor and Description |
|---|
DateTieredCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
StoreConfigInformation storeConfigInfo) |
| Modifier and Type | Method and Description |
|---|---|
protected CompactionRequestImpl |
createCompactionRequest(ArrayList<HStoreFile> candidateSelection,
boolean tryingMajor,
boolean mayUseOffPeak,
boolean mayBeStuck) |
boolean |
needsCompaction(Collection<HStoreFile> storeFiles,
List<HStoreFile> filesCompacting)
Heuristics for guessing whether we need minor compaction.
|
CompactionRequestImpl |
selectMajorCompaction(ArrayList<HStoreFile> candidateSelection) |
CompactionRequestImpl |
selectMinorCompaction(ArrayList<HStoreFile> candidateSelection,
boolean mayUseOffPeak,
boolean mayBeStuck)
We receive store files sorted in ascending order by seqId then scan the list of files.
|
boolean |
shouldPerformMajorCompaction(Collection<HStoreFile> filesToCompact) |
checkMinFilesCriteria, filterBulk, getCurrentEligibleFiles, getNextMajorCompactTime, preSelectCompactionForCoprocessor, removeExcessFiles, selectCompaction, skipLargeFiles, throttleCompactiongetConf, setConfpublic DateTieredCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
StoreConfigInformation storeConfigInfo)
throws IOException
IOException@InterfaceAudience.Private public boolean needsCompaction(Collection<HStoreFile> storeFiles, List<HStoreFile> filesCompacting)
needsCompaction in class SortedCompactionPolicypublic boolean shouldPerformMajorCompaction(Collection<HStoreFile> filesToCompact) throws IOException
shouldPerformMajorCompaction in class SortedCompactionPolicyfilesToCompact - Files to compact. Can be null.IOExceptionprotected CompactionRequestImpl createCompactionRequest(ArrayList<HStoreFile> candidateSelection, boolean tryingMajor, boolean mayUseOffPeak, boolean mayBeStuck) throws IOException
createCompactionRequest in class SortedCompactionPolicyIOExceptionpublic CompactionRequestImpl selectMajorCompaction(ArrayList<HStoreFile> candidateSelection)
public CompactionRequestImpl selectMinorCompaction(ArrayList<HStoreFile> candidateSelection, boolean mayUseOffPeak, boolean mayBeStuck) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.