Class OpenLineageJobDependenciesRunFacet


public class OpenLineageJobDependenciesRunFacet extends OpenLineageRunFacet
This class represents the jobDependencies run facet. It records the job runs that must complete before this run starts, and those that start after it completes. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-1/JobDependenciesRunFacet.json#/$defs/JobDependenciesRunFacet.
  • Constructor Details

    • OpenLineageJobDependenciesRunFacet

      public OpenLineageJobDependenciesRunFacet()
      Default constructor
  • Method Details

    • getUpstream

      Return the job runs that must complete before the current run can start.
      Returns:
      list
    • setUpstream

      public void setUpstream(List<OpenLineageJobDependenciesRunFacetDependency> upstream)
      Set up the job runs that must complete before the current run can start.
      Parameters:
      upstream - list
    • getDownstream

      Return the job runs that will start after completion of the current run.
      Returns:
      list
    • setDownstream

      public void setDownstream(List<OpenLineageJobDependenciesRunFacetDependency> downstream)
      Set up the job runs that will start after completion of the current run.
      Parameters:
      downstream - list
    • getTriggerRule

      public String getTriggerRule()
      Return the condition under which this job will run based on the status of its upstream jobs.
      Returns:
      string
    • setTriggerRule

      public void setTriggerRule(String triggerRule)
      Set up the condition under which this job will run based on the status of its upstream jobs.
      Parameters:
      triggerRule - string
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class OpenLineageRunFacet
      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