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