@InterfaceAudience.Private public class LocatedFileStatusFetcher extends Object
| Constructor and Description |
|---|
LocatedFileStatusFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path[] dirs,
boolean recursive,
org.apache.hadoop.fs.PathFilter inputFilter,
boolean newApi) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<org.apache.hadoop.fs.FileStatus> |
getFileStatuses()
Start executing and return FileStatuses based on the parameters specified
|
public LocatedFileStatusFetcher(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path[] dirs,
boolean recursive,
org.apache.hadoop.fs.PathFilter inputFilter,
boolean newApi)
throws InterruptedException,
IOException
conf - configuration for the jobdirs - the initial list of pathsrecursive - whether to traverse the patchs recursivelyinputFilter - inputFilter to apply to the resulting pathsnewApi - whether using the mapred or mapreduce APIInterruptedExceptionIOExceptionpublic Iterable<org.apache.hadoop.fs.FileStatus> getFileStatuses() throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.