Class OpenLineageSourceCodeLocationJobFacet


public class OpenLineageSourceCodeLocationJobFacet extends OpenLineageJobFacet
This class represents the sourceCodeLocation job facet. It identifies where the source code for the job is held in source control. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-1-0/SourceCodeLocationJobFacet.json#/$defs/SourceCodeLocationJobFacet.
  • Constructor Details

    • OpenLineageSourceCodeLocationJobFacet

      public OpenLineageSourceCodeLocationJobFacet()
      Default constructor
  • Method Details

    • getType

      public String getType()
      Return the source control system, for example git or svn.
      Returns:
      string
    • setType

      public void setType(String type)
      Set up the source control system, for example git or svn.
      Parameters:
      type - string
    • getUrl

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

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

      public String getRepoUrl()
      Return the URL to the repository.
      Returns:
      string
    • setRepoUrl

      public void setRepoUrl(String repoUrl)
      Set up the URL to the repository.
      Parameters:
      repoUrl - string
    • getPath

      public String getPath()
      Return the path in the repository containing the source files.
      Returns:
      string
    • setPath

      public void setPath(String path)
      Set up the path in the repository containing the source files.
      Parameters:
      path - string
    • getVersion

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

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

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

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

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

      public void setBranch(String branch)
      Set up the optional branch name.
      Parameters:
      branch - string
    • getPullRequestNumber

      public String getPullRequestNumber()
      Return the optional pull request or merge request number associated with a CI run.
      Returns:
      string
    • setPullRequestNumber

      public void setPullRequestNumber(String pullRequestNumber)
      Set up the optional pull request or merge request number associated with a CI run.
      Parameters:
      pullRequestNumber - string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenLineageJobFacet
      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 OpenLineageJobFacet
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

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