Interface LineageGraph
public interface LineageGraph
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Deletes an entity's classification in the GraphvoiddeleteEntity(String guid, Object version) /** Deletes a vertex in the graphvoiddeleteRelationship(String guid) Deletes a relationship in the graphGets last asset lineage update time from the graphisEntityInGraph(String guid) Returns whether an entity exists in the graph or notvoidsaveAssetLineageUpdateTime(Long timestamp) Save last asset lineage update time in the graphvoidstoreToGraph(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> graphContext) Stores a lineage event into the lineage graph databasevoidupdateClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Updates an entity's classification in the GraphvoidupdateEntity(org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) Updates a vertex in the GraphvoidupdateNeighbours(org.odpi.openmetadata.accessservices.assetlineage.model.LineageSyncUpdateContext syncUpdateContext) Updates the neighbours of a node by removing all the relationships that no longer have a direct link to the entity.voidupdateRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Updates a vertex in the GraphvoidupsertRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Create or update the relationship between two edges In case the vertexes are not created, they are firstly created
-
Method Details
-
storeToGraph
void storeToGraph(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> graphContext) Stores a lineage event into the lineage graph database- Parameters:
graphContext- graph Collection
-
updateNeighbours
void updateNeighbours(org.odpi.openmetadata.accessservices.assetlineage.model.LineageSyncUpdateContext syncUpdateContext) Updates the neighbours of a node by removing all the relationships that no longer have a direct link to the entity. SyncUpdateContext contains the context for syncing the relationships of a node after an update. -
updateEntity
void updateEntity(org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) Updates a vertex in the Graph- Parameters:
lineageEntity- entity to be updated
-
upsertRelationship
void upsertRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Create or update the relationship between two edges In case the vertexes are not created, they are firstly created- Parameters:
lineageRelationship- relationship to be updated or created
-
updateRelationship
void updateRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Updates a vertex in the Graph- Parameters:
lineageRelationship- relationship to be updated
-
updateClassification
void updateClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Updates an entity's classification in the Graph- Parameters:
classificationContext- classification context
-
deleteClassification
void deleteClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Deletes an entity's classification in the Graph- Parameters:
classificationContext- classification context
-
deleteRelationship
Deletes a relationship in the graph- Parameters:
guid- unique identifier of the entity to be deleted
-
deleteEntity
/** Deletes a vertex in the graph- Parameters:
guid- unique identifier of the entity to be deletedversion- version of the entity to be deleted
-
saveAssetLineageUpdateTime
Save last asset lineage update time in the graph- Parameters:
timestamp- the standard epoch time in milliseconds
-
getAssetLineageUpdateTime
Gets last asset lineage update time from the graph- Returns:
- last update time represented as epoch time milliseconds
-
isEntityInGraph
Returns whether an entity exists in the graph or not- Parameters:
guid- the lineage entity guid- Returns:
- the boolean
-