@NotThreadSafe public final class Lineage extends Object implements JournalEntryRepresentable
Constructor and Description |
---|
Lineage(long id,
List<Long> inputFiles,
List<Long> outputFiles,
Job job)
Creates a new instance of
Lineage . |
Lineage(long id,
List<Long> inputFiles,
List<Long> outputFiles,
Job job,
long creationTimeMs)
Creates a new instance of
Lineage . |
Modifier and Type | Method and Description |
---|---|
static Lineage |
fromJournalEntry(Lineage.LineageEntry entry)
Converts the entry to a
Lineage . |
long |
getCreationTime() |
long |
getId() |
List<Long> |
getInputFiles() |
Job |
getJob() |
List<Long> |
getOutputFiles() |
Journal.JournalEntry |
toJournalEntry() |
String |
toString() |
public Lineage(long id, List<Long> inputFiles, List<Long> outputFiles, Job job)
Lineage
.id
- the lineage idinputFiles
- the input file idsoutputFiles
- the output file idsjob
- the jobpublic Lineage(long id, List<Long> inputFiles, List<Long> outputFiles, Job job, long creationTimeMs)
Lineage
.
This method should only used by lineage. TODO(yupeng): hide this methodid
- the lineage idinputFiles
- the input filesoutputFiles
- the output filesjob
- the jobcreationTimeMs
- the creation timepublic Job getJob()
public long getId()
public long getCreationTime()
public static Lineage fromJournalEntry(Lineage.LineageEntry entry)
Lineage
.entry
- the entry to convertLineage
representationpublic Journal.JournalEntry toJournalEntry()
toJournalEntry
in interface JournalEntryRepresentable
Journal.JournalEntry
representing this objectCopyright © 2023. All Rights Reserved.