Class OpenLineageEgeriaRunRetryRunFacet


public class OpenLineageEgeriaRunRetryRunFacet extends OpenLineageRunFacet
This class represents Egeria's custom egeria_runRetry run facet. A run includes it to say that it is another attempt at the work of an earlier run - a retry after a failure, a restart from a checkpoint or a restatement of results - and, optionally, which datasets written by earlier runs it supersedes. Egeria links the earlier run to this run with a ControlFlow relationship (guard RETRY) when runs are catalogued, and classifies the superseded datasets as Superseded when this run completes. Any OpenLineage producer can add it to its run events. It follows the facet schema at "https://egeria-project.org/openlineage/facets/1-0-0/EgeriaRunRetryRunFacet.json#/$defs/EgeriaRunRetryRunFacet".
  • Field Details

  • Constructor Details

    • OpenLineageEgeriaRunRetryRunFacet

      public OpenLineageEgeriaRunRetryRunFacet()
      Default constructor
  • Method Details

    • getPriorRunId

      public String getPriorRunId()
      Return the run id of the earlier run that this run is another attempt at.
      Returns:
      string
    • setPriorRunId

      public void setPriorRunId(String priorRunId)
      Set up the run id of the earlier run that this run is another attempt at.
      Parameters:
      priorRunId - string
    • getPriorJobNamespace

      public String getPriorJobNamespace()
      Return the namespace of the job of the earlier run, when it is not the job of this run.
      Returns:
      string
    • setPriorJobNamespace

      public void setPriorJobNamespace(String priorJobNamespace)
      Set up the namespace of the job of the earlier run, when it is not the job of this run.
      Parameters:
      priorJobNamespace - string
    • getPriorJobName

      public String getPriorJobName()
      Return the name of the job of the earlier run, when it is not the job of this run.
      Returns:
      string
    • setPriorJobName

      public void setPriorJobName(String priorJobName)
      Set up the name of the job of the earlier run, when it is not the job of this run.
      Parameters:
      priorJobName - string
    • getAttempt

      public Integer getAttempt()
      Return the number of this attempt (the first attempt is 1, so the first retry is 2).
      Returns:
      integer
    • setAttempt

      public void setAttempt(Integer attempt)
      Set up the number of this attempt (the first attempt is 1, so the first retry is 2).
      Parameters:
      attempt - integer
    • getReason

      public String getReason()
      Return the reason for the new attempt.
      Returns:
      string
    • setReason

      public void setReason(String reason)
      Set up the reason for the new attempt.
      Parameters:
      reason - string
    • getSupersededDatasets

      Return the datasets, written by earlier runs, that are superseded when this run completes.
      Returns:
      list of datasets
    • setSupersededDatasets

      public void setSupersededDatasets(List<OpenLineageEgeriaRunRetryRunFacetSupersededDataSet> supersededDatasets)
      Set up the datasets, written by earlier runs, that are superseded when this run completes.
      Parameters:
      supersededDatasets - list of datasets
    • 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