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 |
|---|---|
java.util.List<Path> |
compact(CompactionThroughputController throughputController)
Runs the compaction based on current selection.
|
java.util.List<Path> |
compact(CompactionThroughputController throughputController,
User user) |
java.util.List<StoreFile> |
preSelect(java.util.List<StoreFile> filesCompacting)
Called before coprocessor preCompactSelection and should filter the candidates
for coprocessor; i.e.
|
boolean |
select(java.util.List<StoreFile> f,
boolean i,
boolean m,
boolean e)
Called to select files for compaction.
|
void |
unblock() |
forceSelect, getRequest, hasSelectionpublic void unblock()
public java.util.List<Path> compact(CompactionThroughputController throughputController) throws java.io.IOException
CompactionContextcompact in class CompactionContextjava.io.IOExceptionpublic java.util.List<Path> compact(CompactionThroughputController throughputController, User user) throws java.io.IOException
compact in class CompactionContextjava.io.IOExceptionpublic java.util.List<StoreFile> preSelect(java.util.List<StoreFile> filesCompacting)
CompactionContextpreSelect in class CompactionContextfilesCompacting - files currently compactingpublic boolean select(java.util.List<StoreFile> f, boolean i, boolean m, boolean e) throws java.io.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.java.io.IOException