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
|
protected abstract boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
getConf, setConfpublic Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
FileCleanerDelegategetDeletableFiles in interface FileCleanerDelegatefiles - files to check for deletionprotected abstract boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
fStat - file status of the file to checkCopyright © 2014 The Apache Software Foundation. All rights reserved.