public interface LineageGraph extends OpenLineageGraphConnector
| Modifier and Type | Method and Description |
|---|---|
void |
deleteClassification(Set<GraphContext> classificationContext)
Deletes an entity's classification in the Graph
|
void |
deleteEntity(String guid,
Object version)
/**
Deletes a vertex in the graph
|
void |
deleteRelationship(String guid)
Deletes a relationship in the graph
|
Optional<LocalDateTime> |
getAssetLineageUpdateTime()
Gets last asset lineage update time from the graph
|
boolean |
isEntityInGraph(String guid)
Returns whether an entity exists in the graph or not
|
void |
performLineageGraphJob()
Task that the scheduler performs based on the interval
|
void |
removeObsoleteEdgesFromGraph(String entityGUID,
Set<GraphContext> graphContext)
Checks difference between new graph context and existing graph and delete edge graphs that are no longer in the cotnext
|
void |
saveAssetLineageUpdateTime(LocalDateTime date)
Save last asset lineage update time in the graph
|
void |
storeToGraph(Set<GraphContext> graphContext)
Stores a lineage event into the lineage graph database
|
void |
updateClassification(Set<GraphContext> classificationContext)
Updates an entity's classification in the Graph
|
void |
updateEntity(LineageEntity lineageEntity)
Updates a vertex in the Graph
|
void |
updateRelationship(LineageRelationship lineageRelationship)
Updates a vertex in the Graph
|
void |
upsertRelationship(LineageRelationship lineageRelationship)
Create or update the relationship between two edges
In case the vertexes are not created, they are firstly created
|
disconnect, getEntityDetails, initializeGraphDB, lineage, startvoid storeToGraph(Set<GraphContext> graphContext)
graphContext - graph Collectionvoid removeObsoleteEdgesFromGraph(String entityGUID, Set<GraphContext> graphContext)
entityGUID - entity GUID whose context is being updatedgraphContext - the nodes and edges related to the entityvoid updateEntity(LineageEntity lineageEntity)
lineageEntity - entity to be updatedvoid upsertRelationship(LineageRelationship lineageRelationship)
lineageRelationship - relationship to be updated or createdvoid updateRelationship(LineageRelationship lineageRelationship)
lineageRelationship - relationship to be updatedvoid updateClassification(Set<GraphContext> classificationContext)
classificationContext - classification contextvoid deleteClassification(Set<GraphContext> classificationContext)
classificationContext - classification contextvoid deleteRelationship(String guid)
guid - unique identifier of the entity to be deletedvoid deleteEntity(String guid, Object version)
guid - unique identifier of the entity to be deletedversion - version of the entity to be deletedvoid performLineageGraphJob()
void saveAssetLineageUpdateTime(LocalDateTime date)
date - the dateOptional<LocalDateTime> getAssetLineageUpdateTime()
boolean isEntityInGraph(String guid)
guid - the lineage entity guidCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.