@InterfaceAudience.Private public static class FSOperations.FSListStatus extends Object implements FileSystemAccess.FileSystemExecutor<Map>, org.apache.hadoop.fs.PathFilter
Constructor and Description |
---|
FSListStatus(String path,
String filter)
Creates a list-status executor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.apache.hadoop.fs.Path path) |
Map |
execute(org.apache.hadoop.fs.FileSystem fs)
Returns data for a JSON Map containing the information for
the set of files in 'path' that match 'filter'.
|
public FSListStatus(String path, String filter) throws IOException
path
- the directory/file to retrieve the status of its contents.filter
- glob filter to use.IOException
- thrown if the filter expression is incorrect.public Map execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
execute
in interface FileSystemAccess.FileSystemExecutor<Map>
fs
- filesystem instance to use.IOException
- thrown if an IO error occurred.public boolean accept(org.apache.hadoop.fs.Path path)
accept
in interface org.apache.hadoop.fs.PathFilter
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.