public static class FSUtils.BlackListDirFilter extends Object implements org.apache.hadoop.fs.PathFilter
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-2016 The Apache Software Foundation. All Rights Reserved.