Package org.apache.hadoop.hbase.util
Class FSUtils.FileFilter
java.lang.Object
org.apache.hadoop.hbase.util.AbstractFileStatusFilter
org.apache.hadoop.hbase.util.FSUtils.FileFilter
- All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter
,FileStatusFilter
- Enclosing class:
- FSUtils
A
PathFilter
that returns only regular files.-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.hadoop.hbase.util.AbstractFileStatusFilter
accept, accept, isDirectory, isFile
-
Field Details
-
fs
-
-
Constructor Details
-
FileFilter
-
-
Method Details
-
accept
Description copied from class:AbstractFileStatusFilter
Filters out a path. Can be given an optional directory hint to avoid filestatus lookup.- Specified by:
accept
in classAbstractFileStatusFilter
- 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
-