public static class FSUtils.BlackListDirFilter extends AbstractFileStatusFilter
Constructor and Description |
---|
BlackListDirFilter(FileSystem fs,
java.util.List<java.lang.String> directoryNameBlackList)
Create a filter on the givem filesystem with the specified blacklist
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(Path p,
java.lang.Boolean isDir)
Filters out a path.
|
protected boolean |
isValidName(java.lang.String name) |
accept, accept, isDirectory, isFile
public BlackListDirFilter(FileSystem fs, java.util.List<java.lang.String> directoryNameBlackList)
fs
- filesystem to filterdirectoryNameBlackList
- list of the names of the directories to filter. If
null, all directories are returnedprotected boolean accept(Path p, java.lang.Boolean isDir)
AbstractFileStatusFilter
accept
in class AbstractFileStatusFilter
p
- A filesystem pathisDir
- An optional boolean indicating whether the path is a directory or notprotected boolean isValidName(java.lang.String name)