@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)
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)
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 © 2017 Apache Software Foundation. All Rights Reserved.