Package io.openlineage.client
Class OpenLineage.RunEventBuilder
java.lang.Object
io.openlineage.client.OpenLineage.RunEventBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.RunEvent>
- Enclosing class:
- OpenLineage
public final class OpenLineage.RunEventBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.RunEvent>
builder class for RunEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build an instance of RunEvent from the fields set in the buildereventTime(ZonedDateTime eventTime) eventType(OpenLineage.RunEvent.EventType eventType) inputs(List<OpenLineage.InputDataset> inputs) job(OpenLineage.Job job) outputs(List<OpenLineage.OutputDataset> outputs) run(OpenLineage.Run run)
-
Constructor Details
-
RunEventBuilder
public RunEventBuilder()
-
-
Method Details
-
eventTime
- Parameters:
eventTime- the time the event occurred at- Returns:
- this
-
eventType
- Parameters:
eventType- the current transition of the run state. It is required to issue 1 START event and 1 of [ COMPLETE, ABORT, FAIL ] event per run. Additional events with OTHER eventType can be added to the same run. For example to send additional metadata after the run is complete- Returns:
- this
-
run
- Parameters:
run- the run- Returns:
- this
-
job
- Parameters:
job- the job- Returns:
- this
-
inputs
- Parameters:
inputs- The set of **input** datasets.- Returns:
- this
-
outputs
- Parameters:
outputs- The set of **output** datasets.- Returns:
- this
-
build
build an instance of RunEvent from the fields set in the builder- Specified by:
buildin interfaceOpenLineage.Builder<OpenLineage.RunEvent>- Returns:
- the constructed type
-