io.openlineage.client.utils.DatasetIdentifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openlineage-java Show documentation
Show all versions of openlineage-java Show documentation
Java library for OpenLineage
/*
/* Copyright 2018-2024 contributors to the OpenLineage project
/* SPDX-License-Identifier: Apache-2.0
*/
package io.openlineage.client.utils;
import java.util.LinkedList;
import java.util.List;
import lombok.Value;
@Value
public class DatasetIdentifier {
String name;
String namespace;
List symlinks;
public enum SymlinkType {
TABLE
};
public DatasetIdentifier(String name, String namespace) {
this.name = name;
this.namespace = namespace;
this.symlinks = new LinkedList<>();
}
public DatasetIdentifier withSymlink(String name, String namespace, SymlinkType type) {
symlinks.add(new Symlink(name, namespace, type));
return this;
}
public DatasetIdentifier withSymlink(Symlink symlink) {
symlinks.add(symlink);
return this;
}
@Value
public static class Symlink {
String name;
String namespace;
SymlinkType type;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy