Package org.apache.hadoop.fs.http.server
Class FSOperations.FSFileChecksum
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSFileChecksum
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<Map>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSFileChecksum
extends Object
implements FileSystemAccess.FileSystemExecutor<Map>
Executor that performs a file-checksum FileSystemAccess files system operation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FSFileChecksum
Creates a file-checksum executor.- Parameters:
path- the path to retrieve the checksum.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<Map>- Parameters:
fs- filesystem instance to use.- Returns:
- a Map object (JSON friendly) with the file checksum.
- Throws:
IOException- thrown if an IO error occurred.
-