Class OpenLineageJobFacets
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacets
This class represents the map of job facets for a job. The standard facets from the OpenLineage spec, and the custom facets
registered in the OpenLineage registry, are held in named properties. Any other facets (custom facets, or standard facets not yet modelled) are held in the
additionalProperties map, keyed by their facet name, so that nothing is lost on a round trip through these beans.
The map key of each facet in the JSON is the facet's key from the OpenLineage spec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return any additional facets that are not modelled as named properties.Return the documentation facet.Return the gcp_composer_job facet.Return the gcp_lineage facet.Return the jobType facet.Return the lineage facet.Return the ownership facet.Return the sourceCode facet.Return the sourceCodeLocation facet.getSql()Return the sql facet.getTags()Return the tags facet.inthashCode()Return hash code based on properties.voidsetAdditionalProperties(Map<String, OpenLineageJobFacet> additionalProperties) Set up any additional facets that are not modelled as named properties.voidsetAdditionalProperty(String facetName, OpenLineageJobFacet facet) Add a facet that is not modelled as a named property.voidsetDocumentation(OpenLineageDocumentationJobFacet documentation) Set up the documentation facet.voidsetGcpComposerJob(OpenLineageGcpComposerJobFacet gcpComposerJob) Set up the gcp_composer_job facet.voidsetGcpLineage(OpenLineageGcpLineageJobFacet gcpLineage) Set up the gcp_lineage facet.voidsetJobType(OpenLineageJobTypeJobFacet jobType) Set up the jobType facet.voidsetLineage(OpenLineageLineageJobFacet lineage) Set up the lineage facet.voidsetOwnership(OpenLineageOwnershipJobFacet ownership) Set up the ownership facet.voidsetSourceCode(OpenLineageSourceCodeJobFacet sourceCode) Set up the sourceCode facet.voidsetSourceCodeLocation(OpenLineageSourceCodeLocationJobFacet sourceCodeLocation) Set up the sourceCodeLocation facet.voidSet up the sql facet.voidSet up the tags facet.toString()Standard toString method.
-
Constructor Details
-
OpenLineageJobFacets
public OpenLineageJobFacets()Default constructor
-
-
Method Details
-
getDocumentation
Return the documentation facet.- Returns:
- facet bean
-
setDocumentation
Set up the documentation facet.- Parameters:
documentation- facet bean
-
getSql
Return the sql facet.- Returns:
- facet bean
-
setSql
Set up the sql facet.- Parameters:
sql- facet bean
-
getSourceCodeLocation
Return the sourceCodeLocation facet.- Returns:
- facet bean
-
setSourceCodeLocation
Set up the sourceCodeLocation facet.- Parameters:
sourceCodeLocation- facet bean
-
getSourceCode
Return the sourceCode facet.- Returns:
- facet bean
-
setSourceCode
Set up the sourceCode facet.- Parameters:
sourceCode- facet bean
-
getJobType
Return the jobType facet.- Returns:
- facet bean
-
setJobType
Set up the jobType facet.- Parameters:
jobType- facet bean
-
getOwnership
Return the ownership facet.- Returns:
- facet bean
-
setOwnership
Set up the ownership facet.- Parameters:
ownership- facet bean
-
getTags
Return the tags facet.- Returns:
- facet bean
-
setTags
Set up the tags facet.- Parameters:
tags- facet bean
-
getLineage
Return the lineage facet.- Returns:
- facet bean
-
setLineage
Set up the lineage facet.- Parameters:
lineage- facet bean
-
getGcpComposerJob
Return the gcp_composer_job facet.- Returns:
- facet bean
-
setGcpComposerJob
Set up the gcp_composer_job facet.- Parameters:
gcpComposerJob- facet bean
-
getGcpLineage
Return the gcp_lineage facet.- Returns:
- facet bean
-
setGcpLineage
Set up the gcp_lineage facet.- Parameters:
gcpLineage- facet bean
-
getAdditionalProperties
Return any additional facets that are not modelled as named properties. They are serialized as top-level facet entries alongside the named facets.- Returns:
- map of facet name to facet
-
setAdditionalProperties
Set up any additional facets that are not modelled as named properties.- Parameters:
additionalProperties- map of facet name to facet
-
setAdditionalProperty
Add a facet that is not modelled as a named property. Jackson calls this for each unrecognized facet found in the JSON.- Parameters:
facetName- name (key) of the facetfacet- facet bean
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-