Class OpenLineageRunEvent


  • public class OpenLineageRunEvent
    extends Object
    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 Detail

      • OpenLineageRunEvent

        public OpenLineageRunEvent()
        Default constructor
    • Method Detail

      • getProducer

        public URI 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

        public void setProducer​(URI producer)
        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

        public 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

        public 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.
        Parameters:
        schemaURL - uri
      • getEventType

        public String 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

        public void setEventType​(String eventType)
        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

        public String getEventTime()
        Return the time the event occurred at.
        Returns:
        zoned time
      • setEventTime

        public void setEventTime​(String eventTime)
        Set up the time the event occurred at.
        Parameters:
        eventTime - zoned time
      • getRun

        public OpenLineageRun getRun()
        Return the details of the job run.
        Returns:
        run structure
      • setRun

        public void setRun​(OpenLineageRun run)
        Set up details of the run.
        Parameters:
        run - run structure
      • getJob

        public OpenLineageJob getJob()
        Return the description of the job.
        Returns:
        job structure
      • setJob

        public void setJob​(OpenLineageJob job)
        Set up the description of the job.
        Parameters:
        job - job structure
      • getInputs

        public List<OpenLineageInputDataSet> getInputs()
        Return the set of input data sets.
        Returns:
        list of data set descriptions
      • setInputs

        public void setInputs​(List<OpenLineageInputDataSet> inputs)
        Set up the set of output data sets.
        Parameters:
        inputs - list of data set descriptions
      • getOutputs

        public List<OpenLineageOutputDataSet> getOutputs()
        Return the set of output data sets.
        Returns:
        list of data set descriptions
      • setOutputs

        public void setOutputs​(List<OpenLineageOutputDataSet> outputs)
        Set up the list of output data sets.
        Parameters:
        outputs - list of data set descriptions