FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>@Private public static class FSOperations.FSRename extends java.lang.Object implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
| Constructor | Description |
|---|---|
FSRename(java.lang.String path,
java.lang.String toPath) |
Creates a rename executor.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.json.simple.JSONObject |
execute(org.apache.hadoop.fs.FileSystem fs) |
Executes the filesystem operation.
|
public FSRename(java.lang.String path,
java.lang.String toPath)
path - path to rename.toPath - new name.public org.json.simple.JSONObject execute(org.apache.hadoop.fs.FileSystem fs)
throws java.io.IOException
execute in interface FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>fs - filesystem instance to use.true if the rename operation was successful,
false otherwise.java.io.IOException - thrown if an IO error occurred.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.