public static class FSUtils.BlackListDirFilter extends Object implements org.apache.hadoop.fs.PathFilter
Modifier and Type | Field and Description |
---|---|
private List<String> |
blacklist |
private org.apache.hadoop.fs.FileSystem |
fs |
Constructor and Description |
---|
FSUtils.BlackListDirFilter(org.apache.hadoop.fs.FileSystem fs,
List<String> directoryNameBlackList)
Create a filter on the givem filesystem with the specified blacklist
|
public FSUtils.BlackListDirFilter(org.apache.hadoop.fs.FileSystem fs, List<String> directoryNameBlackList)
fs
- filesystem to filterdirectoryNameBlackList
- list of the names of the directories to filter. If
null, all directories are returnedpublic boolean accept(org.apache.hadoop.fs.Path p)
accept
in interface org.apache.hadoop.fs.PathFilter
protected boolean isValidName(String name)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.