public class DrillFileSystemUtil extends Object
FileSystemUtil class,
only adding Drill file system filter first.| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.fs.PathFilter |
DRILL_SYSTEM_FILTER
Path filter that skips all files and folders that start with dot or underscore.
|
| Constructor and Description |
|---|
DrillFileSystemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.hadoop.fs.FileStatus> |
listAll(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean recursive,
org.apache.hadoop.fs.PathFilter... filters)
Returns statuses of all directories and files present in given path applying custom filters if present.
|
static List<org.apache.hadoop.fs.FileStatus> |
listDirectories(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean recursive,
org.apache.hadoop.fs.PathFilter... filters)
Returns statuses of all directories present in given path applying custom filters if present.
|
static List<org.apache.hadoop.fs.FileStatus> |
listFiles(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
boolean recursive,
org.apache.hadoop.fs.PathFilter... filters)
Returns statuses of all files present in given path applying custom filters if present.
|
public static final org.apache.hadoop.fs.PathFilter DRILL_SYSTEM_FILTER
public static List<org.apache.hadoop.fs.FileStatus> listDirectories(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean recursive, org.apache.hadoop.fs.PathFilter... filters) throws IOException
fs - current file systempath - path to directoryrecursive - true if nested directories should be includedfilters - list of custom filters (optional)IOExceptionpublic static List<org.apache.hadoop.fs.FileStatus> listFiles(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean recursive, org.apache.hadoop.fs.PathFilter... filters) throws IOException
fs - current file systempath - path to file or directoryrecursive - true if files in nested directories should be includedfilters - list of custom filters (optional)IOExceptionpublic static List<org.apache.hadoop.fs.FileStatus> listAll(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, boolean recursive, org.apache.hadoop.fs.PathFilter... filters) throws IOException
fs - current file systempath - path to file or directoryrecursive - true if nested directories and their files should be includedfilters - list of custom filters (optional)IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.