@InterfaceAudience.Private public abstract class BaseFileCleanerDelegate extends BaseConfigurable implements FileCleanerDelegate
| 构造器和说明 |
|---|
BaseFileCleanerDelegate() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, waitpreCleanpublic Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles 在接口中 FileCleanerDelegatefiles - files to check for deletionpublic void init(Map<String,Object> params)
FileCleanerDelegateinit 在接口中 FileCleanerDelegateprotected abstract boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
fStat - file status of the file to checkCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.