org.apache.hadoop.hbase.master.cleaner
Interface FileCleanerDelegate
- All Superinterfaces:
- org.apache.hadoop.conf.Configurable, Stoppable
- All Known Implementing Classes:
- BaseFileCleanerDelegate, BaseHFileCleanerDelegate, BaseLogCleanerDelegate, HFileLinkCleaner, ReplicationLogCleaner, SnapshotHFileCleaner, SnapshotLogCleaner, TimeToLiveHFileCleaner, TimeToLiveLogCleaner
@InterfaceAudience.Private
public interface FileCleanerDelegate
- extends org.apache.hadoop.conf.Configurable, Stoppable
General interface for cleaning files from a folder (generally an archive or
backup folder). These are chained via the CleanerChore
to determine
if a given file should be deleted.
Method Summary |
Iterable<org.apache.hadoop.fs.FileStatus> |
getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
Determines which of the given files are safe to delete |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
getDeletableFiles
Iterable<org.apache.hadoop.fs.FileStatus> getDeletableFiles(Iterable<org.apache.hadoop.fs.FileStatus> files)
- Determines which of the given files are safe to delete
- Parameters:
files
- files to check for deletion
- Returns:
- files that are ok to delete according to this cleaner
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.