org.apache.hadoop.hbase.util
Class FSUtils.BlackListDirFilter
java.lang.Object
org.apache.hadoop.hbase.util.AbstractFileStatusFilter
org.apache.hadoop.hbase.util.FSUtils.BlackListDirFilter
- All Implemented Interfaces:
- org.apache.hadoop.fs.PathFilter, FileStatusFilter
- Direct Known Subclasses:
- FSUtils.DirFilter, FSUtils.UserTableDirFilter, SnapshotDescriptionUtils.CompletedSnaphotDirectoriesFilter
- Enclosing class:
- FSUtils
public static class FSUtils.BlackListDirFilter
- extends AbstractFileStatusFilter
Directory filter that doesn't include any of the directories in the specified blacklist
|
Constructor Summary |
FSUtils.BlackListDirFilter(org.apache.hadoop.fs.FileSystem fs,
List<String> directoryNameBlackList)
Create a filter on the give filesystem with the specified blacklist |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSUtils.BlackListDirFilter
public FSUtils.BlackListDirFilter(org.apache.hadoop.fs.FileSystem fs,
List<String> directoryNameBlackList)
- Create a filter on the give filesystem with the specified blacklist
- Parameters:
fs - filesystem to filterdirectoryNameBlackList - list of the names of the directories to filter. If
null, all directories are returned
accept
protected boolean accept(org.apache.hadoop.fs.Path p,
Boolean isDir)
- Description copied from class:
AbstractFileStatusFilter
- Filters out a path. Can be given an optional directory hint to avoid
filestatus lookup.
- Specified by:
accept in class AbstractFileStatusFilter
- Parameters:
p - A filesystem pathisDir - An optional boolean indicating whether the path is a directory or not
- Returns:
- true if the path is accepted, false if the path is filtered out
isValidName
protected boolean isValidName(String name)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.