public class TestCompaction.BlockingStoreMockMaker.BlockingCompactionContext extends CompactionContext
| Modifier and Type | Field and Description |
|---|---|
boolean |
isInCompact |
request| Constructor and Description |
|---|
BlockingCompactionContext() |
| Modifier and Type | Method and Description |
|---|---|
List<Path> |
compact(CompactionThroughputController throughputController)
Runs the compaction based on current selection.
|
List<Path> |
compact(CompactionThroughputController throughputController,
User user) |
List<StoreFile> |
preSelect(List<StoreFile> filesCompacting)
Called before coprocessor preCompactSelection and should filter the candidates
for coprocessor; i.e.
|
boolean |
select(List<StoreFile> f,
boolean i,
boolean m,
boolean e)
Called to select files for compaction.
|
void |
unblock() |
forceSelect, getRequest, hasSelectionpublic void unblock()
public List<Path> compact(CompactionThroughputController throughputController) throws IOException
CompactionContextcompact in class CompactionContextIOExceptionpublic List<Path> compact(CompactionThroughputController throughputController, User user) throws IOException
compact in class CompactionContextIOExceptionpublic List<StoreFile> preSelect(List<StoreFile> filesCompacting)
CompactionContextpreSelect in class CompactionContextfilesCompacting - files currently compactingpublic boolean select(List<StoreFile> f, boolean i, boolean m, boolean e) throws IOException
CompactionContextselect in class CompactionContextf - Files currently being compacted by other compactions.i - Whether this is a user compaction.m - Whether the underlying policy may assume it's off-peak hours.e - Whether to force major compaction.IOException