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

java.lang.Object
  extended by org.apache.hadoop.hbase.util.AbstractFileStatusFilter
      extended by org.apache.hadoop.hbase.util.FSUtils.FamilyDirFilter
All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter, FileStatusFilter
Enclosing class:
FSUtils

public static class FSUtils.FamilyDirFilter
extends AbstractFileStatusFilter

Filter for all dirs that are legal column family names. This is generally used for colfam dirs ///.


Constructor Summary
FSUtils.FamilyDirFilter(org.apache.hadoop.fs.FileSystem fs)
           
 
Method Summary
protected  boolean accept(org.apache.hadoop.fs.Path p, Boolean isDir)
          Filters out a path.
 
Methods inherited from class org.apache.hadoop.hbase.util.AbstractFileStatusFilter
accept, accept, isDirectory, isFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSUtils.FamilyDirFilter

public FSUtils.FamilyDirFilter(org.apache.hadoop.fs.FileSystem fs)
Method Detail

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 path
isDir - 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


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.