Class OpenLineageSQLJobFacet


public class OpenLineageSQLJobFacet extends OpenLineageJobFacet
This class represents the Common header for the SQL facet in Job in the open lineage standard spec https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.
  • Constructor Details

    • OpenLineageSQLJobFacet

      public OpenLineageSQLJobFacet()
      Default constructor
  • Method Details

    • getQuery

      public String getQuery()
      Return the query expression used.
      Returns:
      string query expression
    • setQuery

      public void setQuery(String query)
      Set up the query expression used.
      Parameters:
      query - string query expression
    • 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 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