public final class SafeUfsDeleter extends Object implements UfsDeleter
Constructor and Description |
---|
SafeUfsDeleter(MountTable mountTable,
ReadOnlyInodeStore inodeStore,
List<Pair<AlluxioURI,LockedInodePath>> inodes,
DeletePOptions deleteOptions)
Creates a new instance of
SafeUfsDeleter . |
Modifier and Type | Method and Description |
---|---|
void |
delete(AlluxioURI alluxioUri,
Inode inode)
Deletes a path if not covered by a recursive delete.
|
public SafeUfsDeleter(MountTable mountTable, ReadOnlyInodeStore inodeStore, List<Pair<AlluxioURI,LockedInodePath>> inodes, DeletePOptions deleteOptions) throws IOException, FileDoesNotExistException, InvalidPathException
SafeUfsDeleter
.mountTable
- the mount tableinodeStore
- the inode storeinodes
- sub-tree being deleted (any node should appear before descendants)deleteOptions
- delete optionsIOException
FileDoesNotExistException
InvalidPathException
public void delete(AlluxioURI alluxioUri, Inode inode) throws IOException, InvalidPathException
UfsDeleter
delete
in interface UfsDeleter
alluxioUri
- Alluxio path to deleteinode
- to deleteIOException
InvalidPathException
Copyright © 2023. All Rights Reserved.