Class OpenLineageSourceCodeLocationJobFacet


  • public class OpenLineageSourceCodeLocationJobFacet
    extends OpenLineageJobFacet
    This class represents the content of an open lineage source code location job facet as defined in JSON spec https://openlineage.io/spec/facets/1-0-0/SourceCodeLocationJobFacet.json#/$defs/SourceCodeLocationJobFacet. It is used internally in Egeria to pass this information to the Lineage Integrator OMIS's integration connectors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getBranch()
      Return the optional branch name.
      java.lang.String getPath()
      Return the path in the repo containing the source files.
      java.lang.String getRepoUrl()
      Return the URL to the repository.
      java.lang.String getTag()
      Return the optional tag name.
      java.lang.String getType()
      Return the type of source code control system.
      java.net.URI getUrl()
      Return the full http URL to locate the file.
      java.lang.String getVersion()
      Return the current version deployed (not a branch name, the actual unique version).
      int hashCode()
      Return hash code based on properties.
      void setBranch​(java.lang.String branch)
      Set up the optional branch name.
      void setPath​(java.lang.String path)
      Set up the path in the repo containing the source files.
      void setRepoUrl​(java.lang.String repoUrl)
      Set up the URL to the repository.
      void setTag​(java.lang.String tag)
      Set up the optional tag name.
      void setType​(java.lang.String type)
      Set up the type of source code control system.
      void setUrl​(java.net.URI url)
      Set up the full http URL to locate the file.
      void setVersion​(java.lang.String version)
      Set up the current version deployed (not a branch name, the actual unique version).
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

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

      • OpenLineageSourceCodeLocationJobFacet

        public OpenLineageSourceCodeLocationJobFacet()
        Default constructor
    • Method Detail

      • getType

        public java.lang.String getType()
        Return the type of source code control system.
        Returns:
        string name
      • setType

        public void setType​(java.lang.String type)
        Set up the type of source code control system.
        Parameters:
        type - string name
      • getUrl

        public java.net.URI getUrl()
        Return the full http URL to locate the file.
        Returns:
        url
      • setUrl

        public void setUrl​(java.net.URI url)
        Set up the full http URL to locate the file.
        Parameters:
        url - url
      • getRepoUrl

        public java.lang.String getRepoUrl()
        Return the URL to the repository.
        Returns:
        url
      • setRepoUrl

        public void setRepoUrl​(java.lang.String repoUrl)
        Set up the URL to the repository.
        Parameters:
        repoUrl - url
      • getPath

        public java.lang.String getPath()
        Return the path in the repo containing the source files.
        Returns:
        name
      • setPath

        public void setPath​(java.lang.String path)
        Set up the path in the repo containing the source files.
        Parameters:
        path - name
      • getVersion

        public java.lang.String getVersion()
        Return the current version deployed (not a branch name, the actual unique version).
        Returns:
        version number
      • setVersion

        public void setVersion​(java.lang.String version)
        Set up the current version deployed (not a branch name, the actual unique version).
        Parameters:
        version - version number
      • getTag

        public java.lang.String getTag()
        Return the optional tag name.
        Returns:
        name
      • setTag

        public void setTag​(java.lang.String tag)
        Set up the optional tag name.
        Parameters:
        tag - name
      • getBranch

        public java.lang.String getBranch()
        Return the optional branch name.
        Returns:
        name
      • setBranch

        public void setBranch​(java.lang.String branch)
        Set up the optional branch name.
        Parameters:
        branch - name
      • toString

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

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

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