Class DateTieredStoreEngine.DateTieredCompactionContext
java.lang.Object
org.apache.hadoop.hbase.regionserver.compactions.CompactionContext
org.apache.hadoop.hbase.regionserver.DateTieredStoreEngine.DateTieredCompactionContext
- Enclosing class:
- DateTieredStoreEngine
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionContext
request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.hadoop.fs.Path>compact(ThroughputController throughputController, User user) voidforceSelect(CompactionRequestImpl request) Forces external selection to be applied for this compaction.preSelect(List<HStoreFile> filesCompacting) Called before coprocessor preCompactSelection and should filter the candidates for coprocessor; i.e.booleanselect(List<HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) Called to select files for compaction.Methods inherited from class org.apache.hadoop.hbase.regionserver.compactions.CompactionContext
getRequest, hasSelection
-
Constructor Details
-
DateTieredCompactionContext
private DateTieredCompactionContext()
-
-
Method Details
-
preSelect
Description copied from class:CompactionContextCalled before coprocessor preCompactSelection and should filter the candidates for coprocessor; i.e. exclude the files that definitely cannot be compacted at this time.- Specified by:
preSelectin classCompactionContext- Parameters:
filesCompacting- files currently compacting- Returns:
- the list of files that can theoretically be compacted.
-
select
public boolean select(List<HStoreFile> filesCompacting, boolean isUserCompaction, boolean mayUseOffPeak, boolean forceMajor) throws IOException Description copied from class:CompactionContextCalled to select files for compaction. Must fill in the request field if successful.- Specified by:
selectin classCompactionContext- Parameters:
filesCompacting- 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.- Returns:
- Whether the selection succeeded. Selection may be empty and lead to no compaction.
- Throws:
IOException
-
forceSelect
Description copied from class:CompactionContextForces external selection to be applied for this compaction.- Overrides:
forceSelectin classCompactionContext- Parameters:
request- The pre-cooked request with selection and other settings.
-
compact
public List<org.apache.hadoop.fs.Path> compact(ThroughputController throughputController, User user) throws IOException - Specified by:
compactin classCompactionContext- Throws:
IOException
-