@PublicApi @ThreadSafe public abstract class AbstractLineageClient extends Object
Modifier and Type | Field and Description |
---|---|
protected LineageContext |
mContext |
Constructor and Description |
---|
AbstractLineageClient(LineageContext context)
Constructs a new instance with a
LineageContext . |
Modifier and Type | Method and Description |
---|---|
long |
createLineage(List<AlluxioURI> inputFiles,
List<AlluxioURI> outputFiles,
Job job,
CreateLineageOptions options)
Creates a lineage.
|
boolean |
deleteLineage(long lineageId,
DeleteLineageOptions options)
Deletes a lineage identified by a given id.
|
List<LineageInfo> |
getLineageInfoList(GetLineageInfoListOptions options)
Lists all the lineages.
|
protected LineageContext mContext
public AbstractLineageClient(LineageContext context)
LineageContext
.context
- lineage contextpublic long createLineage(List<AlluxioURI> inputFiles, List<AlluxioURI> outputFiles, Job job, CreateLineageOptions options) throws FileDoesNotExistException, AlluxioException, IOException
inputFiles
- the files that the job depends onoutputFiles
- the files that the job outputsjob
- the job that takes the listed input file and computes the output fileoptions
- the method optionsFileDoesNotExistException
- an input file does not exist in Alluxio storage, nor is added
as an output file of an existing lineageAlluxioException
IOException
public boolean deleteLineage(long lineageId, DeleteLineageOptions options) throws IOException, LineageDoesNotExistException, LineageDeletionException, AlluxioException
lineageId
- the id of the lineageoptions
- method optionsLineageDoesNotExistException
- if the lineage does not existLineageDeletionException
- if the deletion is cascade but the lineage has childrenIOException
AlluxioException
public List<LineageInfo> getLineageInfoList(GetLineageInfoListOptions options) throws IOException
options
- method optionsIOException
Copyright © 2023. All Rights Reserved.