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<Long> |
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 |
saveAssetLineageUpdateTime(Long timestamp)
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 |
updateNeighbours(String nodeGUID,
Set<String> neighboursGUIDS)
Updates the neighbours of a node by removing all the relationships that no longer have a direct link to the entity.
|
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 updateNeighbours(String nodeGUID, Set<String> neighboursGUIDS)
nodeGUID - - the identifier of the entity that was updatedneighboursGUIDS - - the identifiers of the nodes that have a direct relationship 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(Long timestamp)
timestamp - the standard epoch time in millisecondsOptional<Long> getAssetLineageUpdateTime()
boolean isEntityInGraph(String guid)
guid - the lineage entity guidCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.