@InterfaceAudience.Private public class CompactionRequestImpl extends Object implements CompactionRequest
| 构造器和说明 |
|---|
CompactionRequestImpl(Collection<HStoreFile> files) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
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(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<HStoreFile> files) |
public CompactionRequestImpl(Collection<HStoreFile> files)
public void updateFiles(Collection<HStoreFile> files)
public Collection<HStoreFile> getFiles()
getFiles 在接口中 CompactionRequestpublic void setDescription(String regionName, String storeName)
public long getSize()
getSize 在接口中 CompactionRequestpublic boolean isAllFiles()
isAllFiles 在接口中 CompactionRequesttrue if major compaction or all files are compactedpublic boolean isMajor()
isMajor 在接口中 CompactionRequesttrue if major compactionpublic int getPriority()
getPriority 在接口中 CompactionRequestpublic void setPriority(int p)
public boolean isOffPeak()
isOffPeak 在接口中 CompactionRequesttrue if compaction is Off-peakpublic void setOffPeak(boolean value)
public long getSelectionTime()
getSelectionTime 在接口中 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()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.