@InterfaceAudience.Private public static class FSOperations.FSCreate extends Object implements FileSystemAccess.FileSystemExecutor<Void>
| Constructor and Description |
|---|
FSOperations.FSCreate(InputStream is,
String path,
short perm,
boolean override,
short repl,
long blockSize)
Creates a Create executor.
|
public FSOperations.FSCreate(InputStream is, String path, short perm, boolean override, short repl, long blockSize)
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.public 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 occured.Copyright © 2022 Apache Software Foundation. All rights reserved.