org.apache.hadoop.hbase.master.cleaner
Class TimeToLiveHFileCleaner
java.lang.Object
org.apache.hadoop.hbase.BaseConfigurable
org.apache.hadoop.hbase.master.cleaner.BaseHFileCleanerDelegate
org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, FileCleanerDelegate, Stoppable
@InterfaceAudience.Private
public class TimeToLiveHFileCleaner
- extends BaseHFileCleanerDelegate
HFile cleaner that uses the timestamp of the hfile to determine if it should be deleted. By
default they are allowed to live for
Method Summary |
boolean |
isFileDeletable(org.apache.hadoop.fs.Path filePath)
Should the master delete the file or keep it? |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf |
LOG
public static final org.apache.commons.logging.Log LOG
TTL_CONF_KEY
public static final String TTL_CONF_KEY
- See Also:
- Constant Field Values
TimeToLiveHFileCleaner
public TimeToLiveHFileCleaner()
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
- Overrides:
setConf
in class BaseConfigurable
isFileDeletable
public boolean isFileDeletable(org.apache.hadoop.fs.Path filePath)
- Description copied from interface:
FileCleanerDelegate
- Should the master delete the file or keep it?
- Parameters:
filePath
- full path to the file to check
- Returns:
- true if the file is deletable, false if not
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.