@InterfaceAudience.Private public interface CompactionRequestor
| Modifier and Type | Method and Description |
|---|---|
CompactionRequest |
requestCompaction(HRegion r,
Store s,
String why,
CompactionRequest request) |
CompactionRequest |
requestCompaction(HRegion r,
Store s,
String why,
int pri,
CompactionRequest request) |
List<CompactionRequest> |
requestCompaction(HRegion r,
String why) |
List<CompactionRequest> |
requestCompaction(HRegion r,
String why,
int pri,
List<Pair<CompactionRequest,Store>> requests) |
List<CompactionRequest> |
requestCompaction(HRegion r,
String why,
List<Pair<CompactionRequest,Store>> requests) |
List<CompactionRequest> requestCompaction(HRegion r, String why) throws IOException
r - Region to compactwhy - Why compaction was requested -- used in debug messagesCompactionRequests or an empty list if no
compactions were startedIOExceptionList<CompactionRequest> requestCompaction(HRegion r, String why, List<Pair<CompactionRequest,Store>> requests) throws IOException
r - Region to compactwhy - Why compaction was requested -- used in debug messagesrequests - custom compaction requests. Each compaction must specify the store on which it
is acting. Can be null in which case a compaction will be attempted on all
stores for the region.CompactionRequests or an empty list if no
compactions were startedIOExceptionCompactionRequest requestCompaction(HRegion r, Store s, String why, CompactionRequest request) throws IOException
r - Region to compacts - Store within region to compactwhy - Why compaction was requested -- used in debug messagesrequest - custom compaction request for the HRegion and Store. Custom
request must be null or be constructed with matching region and store.CompactionRequest or null if no compaction was started.IOExceptionList<CompactionRequest> requestCompaction(HRegion r, String why, int pri, List<Pair<CompactionRequest,Store>> requests) throws IOException
r - Region to compactwhy - Why compaction was requested -- used in debug messagespri - Priority of this compaction. minHeap. <=0 is criticalrequests - custom compaction requests. Each compaction must specify the store on which it
is acting. Can be null in which case a compaction will be attempted on all
stores for the region.CompactionRequests or an empty list if no
compactions were started.IOExceptionCompactionRequest requestCompaction(HRegion r, Store s, String why, int pri, CompactionRequest request) throws IOException
r - Region to compacts - Store within region to compactwhy - Why compaction was requested -- used in debug messagespri - Priority of this compaction. minHeap. <=0 is criticalrequest - custom compaction request to run. Store and HRegion for the
request must match the region and store specified here.CompactionRequest or null if no compaction was startedIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.