@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 startedIOException
List<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 startedIOException
CompactionRequest 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.IOException
List<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.IOException
CompactionRequest 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 startedIOException
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.