Class OpenLineageRunEvent
java.lang.Object
org.odpi.openmetadata.integrationservices.lineage.properties.OpenLineageRunEvent
This class represents the content of an open lineage run event as defined in JSON
spec https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json. It is used internally in Egeria to pass this information
to the Lineage Integrator OMIS's integration connectors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the time the event occurred at.Return the current transition of the run state.Return the set of input data sets.getJob()
Return the description of the job.Return the set of output data sets.Return the URI identifying the producer of this metadata.getRun()
Return the details of the job run.Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.void
setEventTime
(String eventTime) Set up the time the event occurred at.void
setEventType
(String eventType) Set up the current transition of the run state.void
setInputs
(List<OpenLineageInputDataSet> inputs) Set up the set of output data sets.void
setJob
(OpenLineageJob job) Set up the description of the job.void
setOutputs
(List<OpenLineageOutputDataSet> outputs) Set up the list of output data sets.void
setProducer
(URI producer) Set up the URI identifying the producer of this metadata.void
setRun
(OpenLineageRun run) Set up details of the run.void
setSchemaURL
(URI schemaURL) Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.
-
Constructor Details
-
OpenLineageRunEvent
public OpenLineageRunEvent()Default constructor
-
-
Method Details
-
getProducer
Return the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.- Returns:
- URI
-
setProducer
Set up the URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha.- Parameters:
producer
- uri
-
getSchemaURL
Return the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.- Returns:
- uri
-
setSchemaURL
Set up the JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet.- Parameters:
schemaURL
- uri
-
getEventType
Return 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:
- string ("START", "COMPLETE", "ABORT", "FAIL", "OTHER")
-
setEventType
Set up 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.- Parameters:
eventType
- string ("START", "COMPLETE", "ABORT", "FAIL", "OTHER")
-
getEventTime
Return the time the event occurred at.- Returns:
- zoned time
-
setEventTime
Set up the time the event occurred at.- Parameters:
eventTime
- zoned time
-
getRun
Return the details of the job run.- Returns:
- run structure
-
setRun
Set up details of the run.- Parameters:
run
- run structure
-
getJob
Return the description of the job.- Returns:
- job structure
-
setJob
Set up the description of the job.- Parameters:
job
- job structure
-
getInputs
Return the set of input data sets.- Returns:
- list of data set descriptions
-
setInputs
Set up the set of output data sets.- Parameters:
inputs
- list of data set descriptions
-
getOutputs
Return the set of output data sets.- Returns:
- list of data set descriptions
-
setOutputs
Set up the list of output data sets.- Parameters:
outputs
- list of data set descriptions
-