@PublicApi @ThreadSafe public final class AlluxioLineage extends AbstractLineageClient
LineageClient
implementation. This class does not access the master client directly
but goes through the implementations provided in AbstractLineageClient
.mContext
Modifier | Constructor and Description |
---|---|
protected |
AlluxioLineage(LineageContext context)
Internal constructor that constructs a new instance with a
LineageContext . |
Modifier and Type | Method and Description |
---|---|
long |
createLineage(List<AlluxioURI> inputFiles,
List<AlluxioURI> outputFiles,
Job job)
Convenience method for
AbstractLineageClient.createLineage(List, List, Job, CreateLineageOptions) with
default options. |
boolean |
deleteLineage(long lineageId)
Convenience method for
AbstractLineageClient.deleteLineage(long, DeleteLineageOptions) with default options. |
static AlluxioLineage |
get() |
static AlluxioLineage |
get(LineageContext context) |
List<LineageInfo> |
getLineageInfoList()
Convenience method for
AbstractLineageClient.getLineageInfoList(GetLineageInfoListOptions) with default
options. |
createLineage, deleteLineage, getLineageInfoList
protected AlluxioLineage(LineageContext context)
LineageContext
.context
- lineage contextpublic static AlluxioLineage get()
public static AlluxioLineage get(LineageContext context)
context
- lineage contextpublic long createLineage(List<AlluxioURI> inputFiles, List<AlluxioURI> outputFiles, Job job) throws FileDoesNotExistException, AlluxioException, IOException
AbstractLineageClient.createLineage(List, List, Job, CreateLineageOptions)
with
default options.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 fileFileDoesNotExistException
- 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) throws IOException, LineageDoesNotExistException, LineageDeletionException, AlluxioException
AbstractLineageClient.deleteLineage(long, DeleteLineageOptions)
with default options.lineageId
- the id of the lineageLineageDoesNotExistException
- if the lineage does not existLineageDeletionException
- if the deletion is cascade but the lineage has childrenIOException
AlluxioException
public List<LineageInfo> getLineageInfoList() throws IOException
AbstractLineageClient.getLineageInfoList(GetLineageInfoListOptions)
with default
options.IOException
Copyright © 2023. All Rights Reserved.