public static class FSUtils.BlackListDirFilter extends Object implements org.apache.hadoop.fs.PathFilter
Constructor and Description |
---|
BlackListDirFilter(org.apache.hadoop.fs.FileSystem fs,
List<String> directoryNameBlackList)
Create a filter on the givem filesystem with the specified blacklist
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.apache.hadoop.fs.Path p) |
protected boolean |
isValidName(String name) |
public 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.