Package org.apache.hadoop.fs.http.server
Class FSOperations.FSListStatus
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSListStatus
- All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter,FileSystemAccess.FileSystemExecutor<Map>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSListStatus
extends Object
implements FileSystemAccess.FileSystemExecutor<Map>, org.apache.hadoop.fs.PathFilter
Executor that performs a list-status FileSystemAccess files system operation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FSListStatus
Creates a list-status executor.- Parameters:
path- the directory/file to retrieve the status of its contents.filter- glob filter to use.- Throws:
IOException- thrown if the filter expression is incorrect.
-
-
Method Details
-
execute
Returns data for a JSON Map containing the information for the set of files in 'path' that match 'filter'.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<Map>- Parameters:
fs- filesystem instance to use.- Returns:
- a Map with the file status of the directory contents that match the filter
- Throws:
IOException- thrown if an IO error occurred.
-
accept
public boolean accept(org.apache.hadoop.fs.Path path) - Specified by:
acceptin interfaceorg.apache.hadoop.fs.PathFilter
-