@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class AbstractFileStatusFilter extends Object implements org.apache.hadoop.fs.PathFilter, FileStatusFilter
| Constructor and Description |
|---|
AbstractFileStatusFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.hadoop.fs.FileStatus f)
Tests whether or not the specified filestatus should be
included in a filestatus list.
|
boolean |
accept(org.apache.hadoop.fs.Path p) |
protected abstract boolean |
accept(org.apache.hadoop.fs.Path p,
Boolean isDir)
Filters out a path.
|
protected boolean |
isDirectory(org.apache.hadoop.fs.FileSystem fs,
Boolean isDir,
org.apache.hadoop.fs.Path p) |
protected boolean |
isFile(org.apache.hadoop.fs.FileSystem fs,
Boolean isDir,
org.apache.hadoop.fs.Path p) |
public AbstractFileStatusFilter()
protected abstract boolean accept(org.apache.hadoop.fs.Path p, @CheckForNull Boolean isDir)
p - A filesystem pathisDir - An optional boolean indicating whether the path is a directory or notpublic boolean accept(org.apache.hadoop.fs.FileStatus f)
FileStatusFilteraccept in interface FileStatusFilterf - The filestatus to be testedtrue if and only if the filestatus
should be includedpublic boolean accept(org.apache.hadoop.fs.Path p)
accept in interface org.apache.hadoop.fs.PathFilterprotected boolean isFile(org.apache.hadoop.fs.FileSystem fs, @CheckForNull Boolean isDir, org.apache.hadoop.fs.Path p) throws IOException
IOExceptionprotected boolean isDirectory(org.apache.hadoop.fs.FileSystem fs, @CheckForNull Boolean isDir, org.apache.hadoop.fs.Path p) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.