static class FSUtils.FileFilter extends AbstractFileStatusFilter
PathFilter
that returns only regular files.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.fs.FileSystem |
fs |
Constructor and Description |
---|
FileFilter(org.apache.hadoop.fs.FileSystem fs) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(org.apache.hadoop.fs.Path p,
Boolean isDir)
Filters out a path.
|
accept, accept, isDirectory, isFile
private final org.apache.hadoop.fs.FileSystem fs
public FileFilter(org.apache.hadoop.fs.FileSystem fs)
protected boolean accept(org.apache.hadoop.fs.Path p, @CheckForNull Boolean isDir)
AbstractFileStatusFilter
accept
in class AbstractFileStatusFilter
p
- A filesystem pathisDir
- An optional boolean indicating whether the path is a directory or notCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.