@InterfaceAudience.Private public static class FSOperations.FSRenameSnapshot extends Object implements FileSystemAccess.FileSystemExecutor<Void>
| Constructor and Description |
|---|
FSOperations.FSRenameSnapshot(String path,
String oldSnapshotName,
String snapshotName)
Creates a renameSnapshot executor.
|
public FSOperations.FSRenameSnapshot(String path, String oldSnapshotName, String snapshotName)
path - directory path of the snapshot to be renamed.oldSnapshotName - current snapshot name.snapshotName - new snapshot name to be set.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 occurred.Copyright © 2022 Apache Software Foundation. All rights reserved.