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, isFileprivate 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)
AbstractFileStatusFilteraccept in class AbstractFileStatusFilterp - A filesystem pathisDir - An optional boolean indicating whether the path is a directory or notCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.