private class StripeStoreEngine.StripeCompaction extends CompactionContext
| Modifier and Type | Field and Description | 
|---|---|
| private StripeCompactionPolicy.StripeCompactionRequest | stripeRequest | 
request| Modifier | Constructor and Description | 
|---|---|
| private  | StripeCompaction() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<org.apache.hadoop.fs.Path> | compact(ThroughputController throughputController,
       User user) | 
| void | forceSelect(CompactionRequestImpl request)Forces external selection to be applied for this compaction. | 
| List<HStoreFile> | preSelect(List<HStoreFile> filesCompacting)Called before coprocessor preCompactSelection and should filter the candidates
 for coprocessor; i.e. | 
| boolean | select(List<HStoreFile> filesCompacting,
      boolean isUserCompaction,
      boolean mayUseOffPeak,
      boolean forceMajor)Called to select files for compaction. | 
getRequest, hasSelectionprivate StripeCompactionPolicy.StripeCompactionRequest stripeRequest
private StripeCompaction()
public List<HStoreFile> preSelect(List<HStoreFile> filesCompacting)
CompactionContextpreSelect in class CompactionContextfilesCompacting - files currently compactingpublic boolean select(List<HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) throws IOException
CompactionContextselect in class CompactionContextfilesCompacting - Files currently being compacted by other compactions.isUserCompaction - Whether this is a user compaction.mayUseOffPeak - Whether the underlying policy may assume it's off-peak hours.forceMajor - Whether to force major compaction.IOExceptionpublic void forceSelect(CompactionRequestImpl request)
CompactionContextforceSelect in class CompactionContextrequest - The pre-cooked request with selection and other settings.public List<org.apache.hadoop.fs.Path> compact(ThroughputController throughputController, User user) throws IOException
compact in class CompactionContextIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.