Class OpenLineageJobFacets

java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacets

public class OpenLineageJobFacets extends Object
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 Details

    • OpenLineageJobFacets

      public OpenLineageJobFacets()
      Default constructor
  • Method Details

    • getDocumentation

      public OpenLineageDocumentationJobFacet getDocumentation()
      Return the documentation facet.
      Returns:
      facet bean
    • setDocumentation

      public void setDocumentation(OpenLineageDocumentationJobFacet documentation)
      Set up the documentation facet.
      Parameters:
      documentation - facet bean
    • getSql

      public OpenLineageSQLJobFacet getSql()
      Return the sql facet.
      Returns:
      facet bean
    • setSql

      public void setSql(OpenLineageSQLJobFacet sql)
      Set up the sql facet.
      Parameters:
      sql - facet bean
    • getSourceCodeLocation

      public OpenLineageSourceCodeLocationJobFacet getSourceCodeLocation()
      Return the sourceCodeLocation facet.
      Returns:
      facet bean
    • setSourceCodeLocation

      public void setSourceCodeLocation(OpenLineageSourceCodeLocationJobFacet sourceCodeLocation)
      Set up the sourceCodeLocation facet.
      Parameters:
      sourceCodeLocation - facet bean
    • getSourceCode

      public OpenLineageSourceCodeJobFacet getSourceCode()
      Return the sourceCode facet.
      Returns:
      facet bean
    • setSourceCode

      public void setSourceCode(OpenLineageSourceCodeJobFacet sourceCode)
      Set up the sourceCode facet.
      Parameters:
      sourceCode - facet bean
    • getJobType

      public OpenLineageJobTypeJobFacet getJobType()
      Return the jobType facet.
      Returns:
      facet bean
    • setJobType

      public void setJobType(OpenLineageJobTypeJobFacet jobType)
      Set up the jobType facet.
      Parameters:
      jobType - facet bean
    • getOwnership

      public OpenLineageOwnershipJobFacet getOwnership()
      Return the ownership facet.
      Returns:
      facet bean
    • setOwnership

      public void setOwnership(OpenLineageOwnershipJobFacet ownership)
      Set up the ownership facet.
      Parameters:
      ownership - facet bean
    • getTags

      public OpenLineageTagsJobFacet getTags()
      Return the tags facet.
      Returns:
      facet bean
    • setTags

      public void setTags(OpenLineageTagsJobFacet tags)
      Set up the tags facet.
      Parameters:
      tags - facet bean
    • getLineage

      public OpenLineageLineageJobFacet getLineage()
      Return the lineage facet.
      Returns:
      facet bean
    • setLineage

      public void setLineage(OpenLineageLineageJobFacet lineage)
      Set up the lineage facet.
      Parameters:
      lineage - facet bean
    • getGcpComposerJob

      public OpenLineageGcpComposerJobFacet getGcpComposerJob()
      Return the gcp_composer_job facet.
      Returns:
      facet bean
    • setGcpComposerJob

      public void setGcpComposerJob(OpenLineageGcpComposerJobFacet gcpComposerJob)
      Set up the gcp_composer_job facet.
      Parameters:
      gcpComposerJob - facet bean
    • getGcpLineage

      public OpenLineageGcpLineageJobFacet getGcpLineage()
      Return the gcp_lineage facet.
      Returns:
      facet bean
    • setGcpLineage

      public void setGcpLineage(OpenLineageGcpLineageJobFacet gcpLineage)
      Set up the gcp_lineage facet.
      Parameters:
      gcpLineage - facet bean
    • getAdditionalProperties

      public Map<String,OpenLineageJobFacet> 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

      public void setAdditionalProperties(Map<String,OpenLineageJobFacet> additionalProperties)
      Set up any additional facets that are not modelled as named properties.
      Parameters:
      additionalProperties - map of facet name to facet
    • setAdditionalProperty

      public void setAdditionalProperty(String facetName, OpenLineageJobFacet facet)
      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 facet
      facet - facet bean
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int