Class OpenLineageRunHistory
java.lang.Object
org.odpi.openmetadata.adapters.connectors.lineageinsight.openlineage.OpenLineageRunHistory
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA data quality assertion evaluated against a dataset.static classThe writes, reads and assertions seen for a dataset.static classThe runs seen for a job.static final recordIdentity of a job or dataset in OpenLineage.static final recordA read of a dataset by a run.static classThe events seen for a single run of a job.static final recordA test reported by the test run facet.static final recordA write to a dataset by a run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcountEvent(Date eventTime) Record that an event has been added.voidRecord that a file could not be read.getDataSet(OpenLineageRunHistory.Key dataset) Return the history of a dataset, creating it if this is the first event for the dataset.Return the datasets seen.Return the time of the earliest event in the history.intReturn the number of events in the history.Return the history of a job, creating it if this is the first event for the job.getJobs()Return the jobs seen.Return the time of the latest event in the history.intReturn the number of files that could not be read.
-
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
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
Return the time of the earliest event in the history.- Returns:
- date or null
-
getLatestEvent
Return the time of the latest event in the history.- Returns:
- date or null
-