@InterfaceAudience.Private public abstract class BaseFileCleanerDelegate extends BaseConfigurable implements FileCleanerDelegate
| Constructor and Description |
|---|
BaseFileCleanerDelegate() |
| 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
|
protected abstract boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisEmptyDirDeletable, preCleanpublic BaseFileCleanerDelegate()
public Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles in interface FileCleanerDelegatefiles - files to check for deletionpublic void init(Map<String,Object> params)
FileCleanerDelegateinit in interface FileCleanerDelegateprotected abstract boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
fStat - file status of the file to checkCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.