@InterfaceAudience.Private public static class FSOperations.FSSetReplication extends Object implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
| Constructor and Description | 
|---|
| FSSetReplication(String path,
                short replication)Creates a set-replication executor. | 
| Modifier and Type | Method and Description | 
|---|---|
| org.json.simple.JSONObject | execute(org.apache.hadoop.fs.FileSystem fs)Executes the filesystem operation. | 
public FSSetReplication(String path, short replication)
path - path to set the replication factor.replication - replication factor to set.public org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs)
                                   throws IOException
execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>fs - filesystem instance to use.true if the replication value was set,
         false otherwise.IOException - thrown if an IO error occurred.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.