@InterfaceAudience.LimitedPrivate(value="Configuration") public class TimeToLiveHFileCleaner extends BaseHFileCleanerDelegate
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_TTL |
private static org.slf4j.Logger |
LOG |
private long |
ttl |
static String |
TTL_CONF_KEY |
Constructor and Description |
---|
TimeToLiveHFileCleaner() |
Modifier and Type | Method and Description |
---|---|
boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
isStopped, stop
getDeletableFiles, init
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preClean
private static final org.slf4j.Logger LOG
public static final String TTL_CONF_KEY
public static final long DEFAULT_TTL
private long ttl
public TimeToLiveHFileCleaner()
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class BaseConfigurable
public boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegate
isFileDeletable
in class BaseFileCleanerDelegate
fStat
- file status of the file to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.