datahub.spark.model.LineageEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-spark-lineage Show documentation
Show all versions of datahub-spark-lineage Show documentation
Library to push data lineage from spark to datahub
package datahub.spark.model;
import datahub.event.MetadataChangeProposalWrapper;
import java.util.Date;
import java.util.List;
import lombok.Data;
@Data
public abstract class LineageEvent {
private final String master;
private final String appName;
private final String appId;
private final long time;
public abstract List asMetadataEvents();
public String timeStr() {
return new Date(getTime()).toInstant().toString();
}
}