@ThreadSafe public final class LineageStateUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Long> |
getLostFiles(Lineage lineage,
FileSystemMasterView fileSystemMasterView) |
static boolean |
isCompleted(Lineage lineage,
FileSystemMasterView fileSystemMasterView)
Checks if all the output files of the given lineage are completed.
|
static boolean |
isInCheckpointing(Lineage lineage,
FileSystemMasterView fileSystemMasterView) |
static boolean |
isPersisted(Lineage lineage,
FileSystemMasterView fileSystemMasterView) |
static boolean |
needRecompute(Lineage lineage,
FileSystemMasterView fileSystemMasterView) |
public static boolean isCompleted(Lineage lineage, FileSystemMasterView fileSystemMasterView) throws FileDoesNotExistException, AccessControlException, UnavailableException
lineage
- the lineage to checkfileSystemMasterView
- the view of the file system master where the output file liesFileDoesNotExistException
- if the file does not existAccessControlException
- if permission deniedUnavailableException
public static boolean needRecompute(Lineage lineage, FileSystemMasterView fileSystemMasterView) throws FileDoesNotExistException
lineage
- the lineage to checkfileSystemMasterView
- the view of the file system masterFileDoesNotExistException
- if any output file of the lineage does not existpublic static boolean isPersisted(Lineage lineage, FileSystemMasterView fileSystemMasterView) throws FileDoesNotExistException
lineage
- the lineage to checkfileSystemMasterView
- the view of the file system masterFileDoesNotExistException
- if the file does not existpublic static boolean isInCheckpointing(Lineage lineage, FileSystemMasterView fileSystemMasterView) throws FileDoesNotExistException
lineage
- the lineage to checkfileSystemMasterView
- the view of the file system masterFileDoesNotExistException
- if the file does not existpublic static List<Long> getLostFiles(Lineage lineage, FileSystemMasterView fileSystemMasterView) throws FileDoesNotExistException
lineage
- the lineage to checkfileSystemMasterView
- the view of the file system masterFileDoesNotExistException
- if any output file of the lineage does not existCopyright © 2023. All Rights Reserved.