FileSystemAccess.FileSystemExecutor<java.lang.Void>@Private public static class FSOperations.FSCreate extends java.lang.Object implements FileSystemAccess.FileSystemExecutor<java.lang.Void>
| Constructor | Description |
|---|---|
FSCreate(java.io.InputStream is,
java.lang.String path,
short perm,
boolean override,
short repl,
long blockSize,
short unmaskedPerm) |
Creates a Create executor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Void |
execute(org.apache.hadoop.fs.FileSystem fs) |
Executes the filesystem operation.
|
public FSCreate(java.io.InputStream is,
java.lang.String path,
short perm,
boolean override,
short repl,
long blockSize,
short unmaskedPerm)
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 filepublic java.lang.Void execute(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
execute in interface FileSystemAccess.FileSystemExecutor<java.lang.Void>fs - filesystem instance to use.java.io.IOException - thrown if an IO error occurred.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.