datahub.client.patch.dataset.EditableSchemaMetadataPatchBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datahub-client Show documentation
Show all versions of datahub-client Show documentation
DataHub Java client for metadata integration
package datahub.client.patch.dataset;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.linkedin.common.GlossaryTermAssociation;
import com.linkedin.common.TagAssociation;
import datahub.client.patch.AbstractPatchBuilder;
import java.util.stream.Stream;
import static com.fasterxml.jackson.databind.node.JsonNodeFactory.*;
import static com.linkedin.metadata.Constants.*;
/**
* Update a single tag or term
*/
public class EditableSchemaMetadataPatchBuilder extends AbstractPatchBuilder {
private static final String BASE_PATH = "/editableSchemaFieldInfo/";
private static final String TAG_KEY = "tag";
private static final String URN_KEY = "urn";
private static final String CONTEXT_KEY = "context";
private final String fieldPath;
private TagAssociation tag = null;
private GlossaryTermAssociation glossaryTerm = null;
public EditableSchemaMetadataPatchBuilder(String fieldPath) {
this.fieldPath = fieldPath;
}
public EditableSchemaMetadataPatchBuilder tag(TagAssociation tag) {
this.tag = tag;
return this;
}
public EditableSchemaMetadataPatchBuilder glossaryTerm(GlossaryTermAssociation glossaryTerm) {
this.glossaryTerm = glossaryTerm;
return this;
}
@Override
protected Stream
© 2015 - 2025 Weber Informatics LLC | Privacy Policy