java.lang.Object
org.odpi.openmetadata.integrationservices.lineage.properties.OpenLineageFacet
Direct Known Subclasses:
OpenLineageDataSetFacet, OpenLineageDataSourceDataSetFacet, OpenLineageInputDataSetInputFacet, OpenLineageJobFacet, OpenLineageOutputDataSetOutputFacet

public abstract class OpenLineageFacet extends Object
This class represents the Common header for facets in the open lineage standard spec https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.
  • Constructor Summary

    Constructors
    Constructor
    Description
    OpenLineageFacet(URI schemaURL)
    Subclass constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return the URI identifying the producer of this metadata.
    Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.
    Return a map of additional custom facets.
    int
    Return hash code based on properties.
    void
    set_producer(URI producer)
    Set up the URI identifying the producer of this metadata.
    void
    set_schemaURL(URI schemaURL)
    Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.
    void
    setAdditionalProperties(Map<String,Object> additionalProperties)
    Set up a map of additional custom facets.
    Standard toString method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OpenLineageFacet

      public OpenLineageFacet(URI schemaURL)
      Subclass constructor
      Parameters:
      schemaURL - default value for schemaURL
  • Method Details

    • get_producer

      public URI get_producer()
      Return the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.
      Returns:
      URI
    • set_producer

      public void set_producer(URI producer)
      Set up the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.
      Parameters:
      producer - uri
    • get_schemaURL

      public URI get_schemaURL()
      Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.
      Returns:
      uri
    • set_schemaURL

      public void set_schemaURL(URI schemaURL)
      Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.
      Parameters:
      schemaURL - uri
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return a map of additional custom facets. The name is the identifier of the facet type and the object is the facet itself.
      Returns:
      custom facet map (map from string to object)
    • setAdditionalProperties

      public void setAdditionalProperties(Map<String,Object> additionalProperties)
      Set up a map of additional custom facets. The name is the identifier of the facet type and the object is the facet itself.
      Parameters:
      additionalProperties - custom facet map (map from string to object)
    • 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