public final class SafeUfsDeleter extends java.lang.Object implements UfsDeleter
| Constructor and Description |
|---|
SafeUfsDeleter(MountTable mountTable,
ReadOnlyInodeStore inodeStore,
java.util.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, java.util.List<Pair<AlluxioURI,LockedInodePath>> inodes, DeletePOptions deleteOptions) throws java.io.IOException, FileDoesNotExistException, InvalidPathException
SafeUfsDeleter.mountTable - the mount tableinodeStore - the inode storeinodes - sub-tree being deleted (any node should appear before descendants)deleteOptions - delete optionsjava.io.IOExceptionFileDoesNotExistExceptionInvalidPathExceptionpublic void delete(AlluxioURI alluxioUri, Inode inode) throws java.io.IOException, InvalidPathException
UfsDeleterdelete in interface UfsDeleteralluxioUri - Alluxio path to deleteinode - to deletejava.io.IOExceptionInvalidPathExceptionCopyright © 2019. All Rights Reserved.