@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotScannerHDFSAclCleaner extends BaseHFileCleanerDelegate
| Constructor and Description |
|---|
SnapshotScannerHDFSAclCleaner() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Map<String,Object> params)
this method is used to pass some instance into subclass
|
boolean |
isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
Check if a empty directory with no subdirs or subfiles can be deleted
|
protected 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, stopgetDeletableFilesgetConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreCleanpublic void init(Map<String,Object> params)
FileCleanerDelegateinit in interface FileCleanerDelegateinit in class BaseFileCleanerDelegatepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.ConfigurablesetConf in class BaseConfigurableprotected boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegateisFileDeletable in class BaseFileCleanerDelegatefStat - file status of the file to checkpublic boolean isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
FileCleanerDelegatedir - Path of the directoryCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.