Package org.apache.hadoop.fs.http.server
Class FSOperations.FSCreate
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSCreate
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<Void>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSCreate
extends Object
implements FileSystemAccess.FileSystemExecutor<Void>
Executor that performs a create FileSystemAccess files system operation.
-
Constructor Summary
ConstructorsConstructorDescriptionFSCreate(InputStream is, String path, short perm, boolean override, short repl, long blockSize, short unmaskedPerm) Creates a Create executor. -
Method Summary
-
Constructor Details
-
FSCreate
public FSCreate(InputStream is, String path, short perm, boolean override, short repl, long blockSize, short unmaskedPerm) Creates a Create executor.- Parameters:
is- input stream to for the file to create.path- path of the file to create.perm- permission for the file.override- if the file should be overriden if it already exist.repl- the replication factor for the file.blockSize- the block size for the file.unmaskedPerm- unmasked permissions for the file
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<Void>- Parameters:
fs- filesystem instance to use.- Returns:
- The URI of the created file.
- Throws:
IOException- thrown if an IO error occurred.
-