public class CompactionRequestImpl extends java.lang.Object implements CompactionRequest
| Constructor and Description |
|---|
CompactionRequestImpl(java.util.Collection<HStoreFile> files) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<HStoreFile> |
getFiles() |
int |
getPriority()
Gets the priority for the request
|
long |
getSelectionTime() |
long |
getSize()
Gets the total size of all StoreFiles in compaction
|
CompactionLifeCycleTracker |
getTracker() |
int |
hashCode() |
boolean |
isAllFiles() |
boolean |
isMajor() |
boolean |
isOffPeak() |
void |
setDescription(java.lang.String regionName,
java.lang.String storeName)
Sets the region/store name, for logging.
|
void |
setIsMajor(boolean isMajor,
boolean isAllFiles)
Specify if this compaction should be a major compaction based on the state of the store
|
void |
setOffPeak(boolean value) |
void |
setPriority(int p)
Sets the priority for the request
|
void |
setTracker(CompactionLifeCycleTracker tracker) |
java.lang.String |
toString() |
void |
updateFiles(java.util.Collection<HStoreFile> files) |
public CompactionRequestImpl(java.util.Collection<HStoreFile> files)
public void updateFiles(java.util.Collection<HStoreFile> files)
public java.util.Collection<HStoreFile> getFiles()
getFiles in interface CompactionRequestpublic void setDescription(java.lang.String regionName,
java.lang.String storeName)
public long getSize()
getSize in interface CompactionRequestpublic boolean isAllFiles()
isAllFiles in interface CompactionRequesttrue if major compaction or all files are compactedpublic boolean isMajor()
isMajor in interface CompactionRequesttrue if major compactionpublic int getPriority()
getPriority in interface CompactionRequestpublic void setPriority(int p)
public boolean isOffPeak()
isOffPeak in interface CompactionRequesttrue if compaction is Off-peakpublic void setOffPeak(boolean value)
public long getSelectionTime()
getSelectionTime in interface CompactionRequestpublic void setIsMajor(boolean isMajor,
boolean isAllFiles)
isMajor - true if the system determines that this compaction should be a major
compactionpublic void setTracker(CompactionLifeCycleTracker tracker)
public CompactionLifeCycleTracker getTracker()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object