@InterfaceAudience.Private public interface CompactionRequestor
| Modifier and Type | Method and Description |
|---|---|
CompactionRequest |
requestCompaction(Region r,
Store s,
String why,
CompactionRequest request) |
CompactionRequest |
requestCompaction(Region r,
Store s,
String why,
int pri,
CompactionRequest request,
User user) |
List<CompactionRequest> |
requestCompaction(Region r,
String why) |
List<CompactionRequest> |
requestCompaction(Region r,
String why,
int pri,
List<Pair<CompactionRequest,Store>> requests,
User user) |
List<CompactionRequest> |
requestCompaction(Region r,
String why,
List<Pair<CompactionRequest,Store>> requests) |
List<CompactionRequest> requestCompaction(Region 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(Region 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(Region 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 Region 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(Region r, String why, int pri, List<Pair<CompactionRequest,Store>> requests, User user) 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.user - the effective userCompactionRequests or an empty list if no
compactions were started.IOExceptionCompactionRequest requestCompaction(Region r, Store s, String why, int pri, CompactionRequest request, User user) 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 Region for the
request must match the region and store specified here.user - CompactionRequest or null if no compaction was startedIOExceptionCopyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.