use of alluxio.proto.journal.Lineage.LineageEntry in project alluxio by Alluxio.
the class Lineage method toJournalEntry.
@Override
public synchronized JournalEntry toJournalEntry() {
List<Long> inputFileIds = new ArrayList<>(mInputFiles);
List<Long> outputFileIds = new ArrayList<>(mOutputFiles);
Preconditions.checkState(mJob instanceof CommandLineJob);
CommandLineJob commandLineJob = (CommandLineJob) mJob;
String jobCommand = commandLineJob.getCommand();
String jobOutputPath = commandLineJob.getJobConf().getOutputFilePath();
LineageEntry lineage = LineageEntry.newBuilder().setId(mId).addAllInputFiles(inputFileIds).addAllOutputFileIds(outputFileIds).setJobCommand(jobCommand).setJobOutputPath(jobOutputPath).setCreationTimeMs(mCreationTimeMs).build();
return JournalEntry.newBuilder().setLineage(lineage).build();
}
Aggregations