datahub.spark.model.dataset.SparkDataset 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.dataset;
import com.linkedin.common.FabricType;
import com.linkedin.common.urn.DatasetUrn;
import datahub.spark.model.LineageUtils;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
public abstract class SparkDataset {
private DatasetUrn urn;
public SparkDataset(
String platform, String platformInstance, String name, FabricType fabricType) {
super();
this.urn = LineageUtils.createDatasetUrn(platform, platformInstance, name, fabricType);
}
public DatasetUrn urn() {
return urn;
}
}