public interface LineageMaster extends Master
Modifier and Type | Method and Description |
---|---|
long |
createLineage(List<AlluxioURI> inputFiles,
List<AlluxioURI> outputFiles,
Job job)
Creates a lineage.
|
boolean |
deleteLineage(long lineageId,
boolean cascade)
Deletes a lineage.
|
List<LineageInfo> |
getLineageInfoList() |
LineageStoreView |
getLineageStoreView() |
long |
reinitializeFile(String path,
long blockSizeBytes,
long ttl,
TtlAction ttlAction)
Reinitializes the file when the file is lost or not completed.
|
void |
reportLostFile(String path)
Reports a file as lost.
|
void |
scheduleCheckpoint(CheckpointPlan plan)
Schedules persistence for the output files of the given checkpoint plan.
|
createJournalContext
getName, processJournalEntry, resetState
getJournalEntryIterator
getDependencies, getName, getServices, start, stop
LineageStoreView getLineageStoreView()
long createLineage(List<AlluxioURI> inputFiles, List<AlluxioURI> outputFiles, Job job) throws InvalidPathException, FileAlreadyExistsException, BlockInfoException, IOException, AccessControlException, FileDoesNotExistException
inputFiles
- the input filesoutputFiles
- the output filesjob
- the jobInvalidPathException
- if the path to the input file is invalidFileAlreadyExistsException
- if the output file already existsBlockInfoException
- if fails to create the output fileAccessControlException
- if the permission check failsFileDoesNotExistException
- if any of the input files do not existIOException
boolean deleteLineage(long lineageId, boolean cascade) throws LineageDoesNotExistException, LineageDeletionException, UnavailableException
lineageId
- id the of lineagecascade
- the flag if to delete all the downstream lineagesLineageDoesNotExistException
- the lineage does not existLineageDeletionException
- the lineage deletion failsUnavailableException
long reinitializeFile(String path, long blockSizeBytes, long ttl, TtlAction ttlAction) throws InvalidPathException, LineageDoesNotExistException, AccessControlException, FileDoesNotExistException, UnavailableException
path
- the path to the fileblockSizeBytes
- the block sizettl
- the TTLttlAction
- action to perform on ttl expiryInvalidPathException
- the file path is invalidLineageDoesNotExistException
- when the file does not existAccessControlException
- if permission checking failsFileDoesNotExistException
- if the path does not existUnavailableException
List<LineageInfo> getLineageInfoList() throws LineageDoesNotExistException, FileDoesNotExistException
LineageInfo
sLineageDoesNotExistException
- if the lineage does not existFileDoesNotExistException
- if any associated file does not existvoid scheduleCheckpoint(CheckpointPlan plan)
plan
- the plan for checkpointingvoid reportLostFile(String path) throws FileDoesNotExistException, AccessControlException, InvalidPathException, UnavailableException
path
- the path to the fileFileDoesNotExistException
- if the file does not existAccessControlException
- if permission checking failsInvalidPathException
- if the path is invalidUnavailableException
Copyright © 2023. All Rights Reserved.