@InterfaceAudience.Private public class CompactionRequestImpl extends Object implements CompactionRequest
| Constructor and Description |
|---|
CompactionRequestImpl(Collection<HStoreFile> files) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Collection<HStoreFile> |
getFiles()
Returns unmodifiable collection of StoreFiles in compaction
|
int |
getPriority()
Gets the priority for the request
|
long |
getSelectionTime()
Returns compaction request creation time in milliseconds
|
long |
getSize()
Gets the total size of all StoreFiles in compaction
|
CompactionLifeCycleTracker |
getTracker() |
Consumer<org.apache.hadoop.fs.Path> |
getWriterCreationTracker() |
int |
hashCode() |
boolean |
isAfterSplit() |
boolean |
isAllFiles()
Returns
true if major compaction or all files are compacted |
boolean |
isMajor()
Returns
true if major compaction |
boolean |
isOffPeak()
Returns
true if compaction is Off-peak |
void |
setAfterSplit(boolean afterSplit) |
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) |
void |
setWriterCreationTracker(Consumer<org.apache.hadoop.fs.Path> writerCreationTracker) |
String |
toString() |
void |
updateFiles(Collection<HStoreFile> files) |
public CompactionRequestImpl(Collection<HStoreFile> files)
public void updateFiles(Collection<HStoreFile> files)
public Collection<HStoreFile> getFiles()
CompactionRequestgetFiles in interface CompactionRequestpublic void setDescription(String regionName, String storeName)
public long getSize()
getSize in interface CompactionRequestpublic boolean isAllFiles()
CompactionRequesttrue if major compaction or all files are compactedisAllFiles in interface CompactionRequestpublic boolean isMajor()
CompactionRequesttrue if major compactionisMajor in interface CompactionRequestpublic int getPriority()
getPriority in interface CompactionRequestpublic void setPriority(int p)
public boolean isOffPeak()
CompactionRequesttrue if compaction is Off-peakisOffPeak in interface CompactionRequestpublic void setOffPeak(boolean value)
public long getSelectionTime()
CompactionRequestgetSelectionTime 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 Consumer<org.apache.hadoop.fs.Path> getWriterCreationTracker()
public void setWriterCreationTracker(Consumer<org.apache.hadoop.fs.Path> writerCreationTracker)
public boolean isAfterSplit()
public void setAfterSplit(boolean afterSplit)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.