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 Detail

      • OpenLineageSQLJobFacet

        public OpenLineageSQLJobFacet()
        Default constructor
    • Method Detail

      • getQuery

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

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