Class OpenLineageGcpComposerJobFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageGcpComposerJobFacet
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the version of Airflow, suffixed by +composer.Return the version of the Cloud Composer environment.getDagId()Return the id of the DAG.Return the Cloud Composer environment name.Return the operator class name.Return the id of the task.inthashCode()Return hash code based on properties.voidsetAirflowVersion(String airflowVersion) Set up the version of Airflow, suffixed by +composer.voidsetComposerVersion(String composerVersion) Set up the version of the Cloud Composer environment.voidSet up the id of the DAG.voidsetEnvironmentName(String environmentName) Set up the Cloud Composer environment name.voidsetOperator(String operator) Set up the operator class name.voidSet up the id of the task.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobFacet
get_deleted, set_deletedMethods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
Constructor Details
-
OpenLineageGcpComposerJobFacet
public OpenLineageGcpComposerJobFacet()Default constructor
-
-
Method Details
-
getEnvironmentName
Return the Cloud Composer environment name.- Returns:
- string
-
setEnvironmentName
Set up the Cloud Composer environment name.- Parameters:
environmentName- string
-
getDagId
Return the id of the DAG.- Returns:
- string
-
setDagId
Set up the id of the DAG.- Parameters:
dagId- string
-
getOperator
Return the operator class name. Only present for tasks, not for DAGs, for example PythonOperator.- Returns:
- string
-
setOperator
Set up the operator class name. Only present for tasks, not for DAGs, for example PythonOperator.- Parameters:
operator- string
-
getTaskId
Return the id of the task. Only present for tasks, not for DAGs.- Returns:
- string
-
setTaskId
Set up the id of the task. Only present for tasks, not for DAGs.- Parameters:
taskId- string
-
getAirflowVersion
Return the version of Airflow, suffixed by +composer.- Returns:
- string
-
setAirflowVersion
Set up the version of Airflow, suffixed by +composer.- Parameters:
airflowVersion- string
-
getComposerVersion
Return the version of the Cloud Composer environment.- Returns:
- string
-
setComposerVersion
Set up the version of the Cloud Composer environment.- Parameters:
composerVersion- string
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageJobFacet- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classOpenLineageJobFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageJobFacet- Returns:
- int
-