java.lang.Object
org.odpi.openmetadata.adapters.connectors.lineageinsight.openlineage.OpenLineageRunHistory

public class OpenLineageRunHistory extends Object
OpenLineageRunHistory is the in-memory model of a window of OpenLineage events read from a log store. It groups the events by job (into runs) and by dataset (into writes, reads and data quality results) so that the analysis services can work with a job's run series or a dataset's write series directly.
  • Constructor Details

    • OpenLineageRunHistory

      public OpenLineageRunHistory()
  • Method Details

    • getJob

      Return the history of a job, creating it if this is the first event for the job.
      Parameters:
      job - job identity
      Returns:
      job history
    • getDataSet

      Return the history of a dataset, creating it if this is the first event for the dataset.
      Parameters:
      dataset - dataset identity
      Returns:
      dataset history
    • getJobs

      Return the jobs seen.
      Returns:
      map
    • getDataSets

      Return the datasets seen.
      Returns:
      map
    • countEvent

      public void countEvent(Date eventTime)
      Record that an event has been added.
      Parameters:
      eventTime - time of the event
    • countUnreadableFile

      public void countUnreadableFile()
      Record that a file could not be read.
    • getEventCount

      public int getEventCount()
      Return the number of events in the history.
      Returns:
      count
    • getUnreadableFiles

      public int getUnreadableFiles()
      Return the number of files that could not be read.
      Returns:
      count
    • getEarliestEvent

      public Date getEarliestEvent()
      Return the time of the earliest event in the history.
      Returns:
      date or null
    • getLatestEvent

      public Date getLatestEvent()
      Return the time of the latest event in the history.
      Returns:
      date or null