org.apache.hadoop.hbase.util
Class FSUtils.BlackListDirFilter

java.lang.Object
  extended by org.apache.hadoop.hbase.util.FSUtils.BlackListDirFilter
All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter
Direct Known Subclasses:
FSUtils.DirFilter, FSUtils.UserTableDirFilter, SnapshotDescriptionUtils.CompletedSnaphotDirectoriesFilter
Enclosing class:
FSUtils

public static class FSUtils.BlackListDirFilter
extends Object
implements org.apache.hadoop.fs.PathFilter

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
 
Method Summary
 boolean accept(org.apache.hadoop.fs.Path p)
           
protected  boolean isValidName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 filter
directoryNameBlackList - list of the names of the directories to filter. If null, all directories are returned
Method Detail

accept

public boolean accept(org.apache.hadoop.fs.Path p)
Specified by:
accept in interface org.apache.hadoop.fs.PathFilter

isValidName

protected boolean isValidName(String name)


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.