|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.regionserver.compactions.CompactionRequest
public class CompactionRequest
This class holds all details necessary to run a compaction.
| Nested Class Summary | |
|---|---|
static class |
CompactionRequest.Rejection
Cleanup class to use when rejecting a compaction request from the queue. |
| Constructor Summary | |
|---|---|
CompactionRequest(HRegion r,
Store s,
List<StoreFile> files,
boolean isMajor,
int p)
|
|
| Method Summary | |
|---|---|
int |
compareTo(CompactionRequest request)
This function will define where in the priority queue the request will end up. |
List<StoreFile> |
getFiles()
Gets the StoreFiles for the request |
HRegion |
getHRegion()
Gets the HRegion for the request |
int |
getPriority()
Gets the priority for the request |
long |
getSize()
Gets the total size of all StoreFiles in compaction |
Store |
getStore()
Gets the Store for the request |
boolean |
isMajor()
|
void |
run()
|
void |
setPriority(int p)
Gets the priority for the request |
void |
setServer(HRegionServer hrs)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompactionRequest(HRegion r,
Store s,
List<StoreFile> files,
boolean isMajor,
int p)
| Method Detail |
|---|
public int compareTo(CompactionRequest request)
Note: The date is only accurate to the millisecond which means it is possible that two requests were inserted into the queue within a millisecond. When that is the case this function will break the tie arbitrarily.
compareTo in interface Comparable<CompactionRequest>public HRegion getHRegion()
public Store getStore()
public List<StoreFile> getFiles()
public long getSize()
public boolean isMajor()
public int getPriority()
public void setPriority(int p)
public void setServer(HRegionServer hrs)
public String toString()
toString in class Objectpublic void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||