Package datahub.client.patch.dataset
Class EditableSchemaMetadataPatchBuilder
- java.lang.Object
-
- datahub.client.patch.AbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>
-
- datahub.client.patch.dataset.EditableSchemaMetadataPatchBuilder
-
public class EditableSchemaMetadataPatchBuilder extends AbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>
Update a single tag or term
-
-
Field Summary
-
Fields inherited from class datahub.client.patch.AbstractPatchBuilder
OBJECT_MAPPER, op, OP_KEY, PATH_KEY, targetEntityUrn, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description EditableSchemaMetadataPatchBuilder(java.lang.String fieldPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetAspectName()The aspect name associated with this builderprotected java.lang.StringgetPath()Path of the patch to apply, patch builders with complex object subpath will use a FieldPath enum to specifyprotected java.util.stream.Stream<java.lang.Object>getRequiredProperties()Properties required by this builder to properly construct a patchprotected com.fasterxml.jackson.databind.JsonNodegetValue()Json Patch value in JsonNode format, Note: field values initialize as null, so setting a field to null will be ignored rather than actually setting the field to null.EditableSchemaMetadataPatchBuilderglossaryTerm(com.linkedin.common.GlossaryTermAssociation glossaryTerm)EditableSchemaMetadataPatchBuildertag(com.linkedin.common.TagAssociation tag)-
Methods inherited from class datahub.client.patch.AbstractPatchBuilder
build, buildPatch, op, urn
-
-
-
-
Method Detail
-
tag
public EditableSchemaMetadataPatchBuilder tag(com.linkedin.common.TagAssociation tag)
-
glossaryTerm
public EditableSchemaMetadataPatchBuilder glossaryTerm(com.linkedin.common.GlossaryTermAssociation glossaryTerm)
-
getRequiredProperties
protected java.util.stream.Stream<java.lang.Object> getRequiredProperties()
Description copied from class:AbstractPatchBuilderProperties required by this builder to properly construct a patch- Specified by:
getRequiredPropertiesin classAbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>- Returns:
- a list of properties to execute a null check on
-
getPath
protected java.lang.String getPath()
Description copied from class:AbstractPatchBuilderPath of the patch to apply, patch builders with complex object subpath will use a FieldPath enum to specify- Specified by:
getPathin classAbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>- Returns:
- path string
-
getValue
protected com.fasterxml.jackson.databind.JsonNode getValue()
Description copied from class:AbstractPatchBuilderJson Patch value in JsonNode format, Note: field values initialize as null, so setting a field to null will be ignored rather than actually setting the field to null.- Specified by:
getValuein classAbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>- Returns:
JsonNode
-
getAspectName
protected java.lang.String getAspectName()
Description copied from class:AbstractPatchBuilderThe aspect name associated with this builder- Specified by:
getAspectNamein classAbstractPatchBuilder<EditableSchemaMetadataPatchBuilder>- Returns:
- aspect name
-
-