Class OpenLineageJobDependenciesRunFacet
java.lang.Object
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageRunFacet
org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageJobDependenciesRunFacet
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the job runs that will start after completion of the current run.Return the condition under which this job will run based on the status of its upstream jobs.Return the job runs that must complete before the current run can start.inthashCode()Return hash code based on properties.voidSet up the job runs that will start after completion of the current run.voidsetTriggerRule(String triggerRule) Set up the condition under which this job will run based on the status of its upstream jobs.voidSet up the job runs that must complete before the current run can start.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.integration.openlineage.OpenLineageFacet
get_producer, get_schemaURL, getAdditionalProperties, set_producer, set_schemaURL, setAdditionalProperties, setAdditionalProperty
-
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
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
Set up the job runs that will start after completion of the current run.- Parameters:
downstream- list
-
getTriggerRule
Return the condition under which this job will run based on the status of its upstream jobs.- Returns:
- string
-
setTriggerRule
Set up the condition under which this job will run based on the status of its upstream jobs.- Parameters:
triggerRule- string
-
toString
Standard toString method.- Overrides:
toStringin classOpenLineageRunFacet- 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 classOpenLineageFacet- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classOpenLineageFacet- Returns:
- int
-