org.apache.hadoop.hbase.regionserver
Interface CompactionRequestor
- All Known Implementing Classes:
- CompactSplitThread
@InterfaceAudience.Private
public interface CompactionRequestor
Method Summary |
CompactionRequest |
requestCompaction(HRegion r,
Store s,
String why,
CompactionRequest request)
|
CompactionRequest |
requestCompaction(HRegion r,
Store s,
String why,
int pri,
CompactionRequest request,
User user)
|
List<CompactionRequest> |
requestCompaction(HRegion r,
String why)
|
List<CompactionRequest> |
requestCompaction(HRegion r,
String why,
int pri,
List<Pair<CompactionRequest,Store>> requests,
User user)
|
List<CompactionRequest> |
requestCompaction(HRegion r,
String why,
List<Pair<CompactionRequest,Store>> requests)
|
requestCompaction
List<CompactionRequest> requestCompaction(HRegion r,
String why)
throws IOException
- Parameters:
r
- Region to compactwhy
- Why compaction was requested -- used in debug messages
- Returns:
- The created
CompactionRequests
or an empty list if no
compactions were started
- Throws:
IOException
requestCompaction
List<CompactionRequest> requestCompaction(HRegion r,
String why,
List<Pair<CompactionRequest,Store>> requests)
throws IOException
- Parameters:
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.
- Returns:
- The created
CompactionRequests
or an empty list if no
compactions were started
- Throws:
IOException
requestCompaction
CompactionRequest requestCompaction(HRegion r,
Store s,
String why,
CompactionRequest request)
throws IOException
- Parameters:
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.
- Returns:
- The created
CompactionRequest
or null if no compaction was started.
- Throws:
IOException
requestCompaction
List<CompactionRequest> requestCompaction(HRegion r,
String why,
int pri,
List<Pair<CompactionRequest,Store>> requests,
User user)
throws IOException
- Parameters:
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 user
- Returns:
- The created
CompactionRequests
or an empty list if no
compactions were started.
- Throws:
IOException
requestCompaction
CompactionRequest requestCompaction(HRegion r,
Store s,
String why,
int pri,
CompactionRequest request,
User user)
throws IOException
- Parameters:
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.user
-
- Returns:
- The created
CompactionRequest
or null if no compaction was started
- Throws:
IOException
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.