Class OpenLineageSourceCodeJobFacet


public class OpenLineageSourceCodeJobFacet extends OpenLineageJobFacet
This class represents the sourceCode job facet. It captures the source code of the job. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-1/SourceCodeJobFacet.json#/$defs/SourceCodeJobFacet.
  • Constructor Details

    • OpenLineageSourceCodeJobFacet

      public OpenLineageSourceCodeJobFacet()
      Default constructor
  • Method Details

    • getLanguage

      public String getLanguage()
      Return the language in which the source code of the job was written.
      Returns:
      string
    • setLanguage

      public void setLanguage(String language)
      Set up the language in which the source code of the job was written.
      Parameters:
      language - string
    • getSourceCode

      public String getSourceCode()
      Return the source code of the job.
      Returns:
      string
    • setSourceCode

      public void setSourceCode(String sourceCode)
      Set up the source code of the job.
      Parameters:
      sourceCode - 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