@InterfaceAudience.Private public interface FileCleanerDelegate extends org.apache.hadoop.conf.Configurable, Stoppable
CleanerChore
to determine if a given file should be deleted.Modifier and Type | Method and Description |
---|---|
Iterable<org.apache.hadoop.fs.FileStatus> |
getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
Determines which of the given files are safe to delete
|
void |
init(Map<String,Object> params)
this method is used to pass some instance into subclass
|
default boolean |
isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
Check if a empty directory with no subdirs or subfiles can be deleted
|
default void |
preClean()
Used to do some initialize work before every period clean
|
Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
files
- files to check for deletiondefault void preClean()
default boolean isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
dir
- Path of the directoryCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.