@InterfaceAudience.Private public class CompactionRequest extends Object
Constructor and Description |
---|
CompactionRequest(Collection<StoreFile> files) |
Modifier and Type | Method and Description |
---|---|
Collection<StoreFile> |
getFiles() |
int |
getPriority()
Gets the priority for the request
|
long |
getSelectionNanoTime() |
long |
getSelectionTime() |
long |
getSize()
Gets the total size of all StoreFiles in compaction
|
CompactionLifeCycleTracker |
getTracker() |
boolean |
isAllFiles() |
boolean |
isMajor() |
boolean |
isOffPeak() |
void |
setDescription(String regionName,
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) |
String |
toString() |
void |
updateFiles(Collection<StoreFile> files) |
public CompactionRequest(Collection<StoreFile> files)
public void updateFiles(Collection<StoreFile> files)
public Collection<StoreFile> getFiles()
public void setDescription(String regionName, String storeName)
public long getSize()
public boolean isAllFiles()
public boolean isMajor()
public int getPriority()
public void setPriority(int p)
public boolean isOffPeak()
public void setOffPeak(boolean value)
public long getSelectionTime()
public long getSelectionNanoTime()
public 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()
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.