Package org.apache.hadoop.fs.http.server
Class FSOperations.FSOpen
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSOpen
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<InputStream>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSOpen
extends Object
implements FileSystemAccess.FileSystemExecutor<InputStream>
Executor that performs a open FileSystemAccess files system operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.apache.hadoop.fs.FileSystem fs) Executes the filesystem operation.
-
Constructor Details
-
FSOpen
Creates a open executor.- Parameters:
path- file to open.
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<InputStream>- Parameters:
fs- filesystem instance to use.- Returns:
- The inputstream of the file.
- Throws:
IOException- thrown if an IO error occurred.
-