Class OpenLineageGcpComposerJobFacet


public class OpenLineageGcpComposerJobFacet extends OpenLineageJobFacet
This class represents the gcp_composer_job job facet registered by Google Cloud Composer. It identifies the Composer environment, DAG and task that the job belongs to. It follows the OpenLineage facet spec https://openlineage.io/spec/facets/1-0-0/GcpComposerJobFacet.json#/$defs/GcpComposerJobFacet.
  • Constructor Details

    • OpenLineageGcpComposerJobFacet

      public OpenLineageGcpComposerJobFacet()
      Default constructor
  • Method Details

    • getEnvironmentName

      public String getEnvironmentName()
      Return the Cloud Composer environment name.
      Returns:
      string
    • setEnvironmentName

      public void setEnvironmentName(String environmentName)
      Set up the Cloud Composer environment name.
      Parameters:
      environmentName - string
    • getDagId

      public String getDagId()
      Return the id of the DAG.
      Returns:
      string
    • setDagId

      public void setDagId(String dagId)
      Set up the id of the DAG.
      Parameters:
      dagId - string
    • getOperator

      public String getOperator()
      Return the operator class name. Only present for tasks, not for DAGs, for example PythonOperator.
      Returns:
      string
    • setOperator

      public void setOperator(String operator)
      Set up the operator class name. Only present for tasks, not for DAGs, for example PythonOperator.
      Parameters:
      operator - string
    • getTaskId

      public String getTaskId()
      Return the id of the task. Only present for tasks, not for DAGs.
      Returns:
      string
    • setTaskId

      public void setTaskId(String taskId)
      Set up the id of the task. Only present for tasks, not for DAGs.
      Parameters:
      taskId - string
    • getAirflowVersion

      public String getAirflowVersion()
      Return the version of Airflow, suffixed by +composer.
      Returns:
      string
    • setAirflowVersion

      public void setAirflowVersion(String airflowVersion)
      Set up the version of Airflow, suffixed by +composer.
      Parameters:
      airflowVersion - string
    • getComposerVersion

      public String getComposerVersion()
      Return the version of the Cloud Composer environment.
      Returns:
      string
    • setComposerVersion

      public void setComposerVersion(String composerVersion)
      Set up the version of the Cloud Composer environment.
      Parameters:
      composerVersion - 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