Package io.openlineage.client
Class OpenLineage.JobDependencyBuilder
java.lang.Object
io.openlineage.client.OpenLineage.JobDependencyBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.JobDependency>
- Enclosing class:
- OpenLineage
public static final class OpenLineage.JobDependencyBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.JobDependency>
builder class for JobDependency
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build an instance of JobDependency from the fields set in the builderdependency_type(String dependency_type) sequence_trigger_rule(String sequence_trigger_rule) status_trigger_rule(String status_trigger_rule)
-
Constructor Details
-
JobDependencyBuilder
public JobDependencyBuilder()
-
-
Method Details
-
job
- Parameters:
job- the job- Returns:
- this
-
run
- Parameters:
run- the run- Returns:
- this
-
dependency_type
- Parameters:
dependency_type- Used to describe whether the upstream job directly triggers the downstream job, or whether the dependency is implicit (e.g. time-based).- Returns:
- this
-
sequence_trigger_rule
- Parameters:
sequence_trigger_rule- Used to describe the exact sequence condition on which the downstream job can be executed (FINISH_TO_START - downstream job can start when upstream finished; FINISH_TO_FINISH - job executions can overlap, but need to finish in specified order; START_TO_START - jobs need to start at the same time in parallel).- Returns:
- this
-
status_trigger_rule
- Parameters:
status_trigger_rule- Used to describe if the downstream job should be run based on the status of the upstream job.- Returns:
- this
-
build
build an instance of JobDependency from the fields set in the builder- Specified by:
buildin interfaceOpenLineage.Builder<OpenLineage.JobDependency>- Returns:
- the constructed type
-