Class LineageGraphStorageService
java.lang.Object
org.odpi.openmetadata.openconnectors.governancedaemonconnectors.openlineageconnectors.janusconnector.graph.LineageGraphStorageService
- All Implemented Interfaces:
org.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
public class LineageGraphStorageService
extends Object
implements org.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
Constructor Summary
ConstructorsConstructorDescriptionLineageGraphStorageService(GraphHelper graphHelper, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Deletes a classification of a vertexvoiddeleteEntity(String guid, Object version) voiddeleteRelationship(String guid) voidisEntityInGraph(String guid) voidsaveAssetLineageUpdateTime(Long lastUpdateTime) voidstoreToGraph(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> graphContext) Creates vertices and the relationships between themvoidupdateClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Updates the classification of a vertexvoidupdateEntity(org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) Updates the properties of a vertexvoidupdateNeighbours(org.odpi.openmetadata.accessservices.assetlineage.model.LineageSyncUpdateContext syncUpdateContext) Updates the neighbours of a node by removing all the entities that no longer have a relationship with it.voidupdateRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Updates the properties of an edgevoidupsertRelationship(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
-
Constructor Details
-
LineageGraphStorageService
public LineageGraphStorageService(GraphHelper graphHelper, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog)
-
-
Method Details
-
storeToGraph
public void storeToGraph(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> graphContext) Creates vertices and the relationships between them- Specified by:
storeToGraphin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
graphContext- - graph Collection that contains vertices and edges to be stored
-
updateNeighbours
public void updateNeighbours(org.odpi.openmetadata.accessservices.assetlineage.model.LineageSyncUpdateContext syncUpdateContext) Updates the neighbours of a node by removing all the entities that no longer have a relationship with it.SyncUpdateContext contains the context for syncing the relationships of a node after an update.
- Specified by:
updateNeighboursin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
updateEntity
public void updateEntity(org.odpi.openmetadata.accessservices.assetlineage.model.LineageEntity lineageEntity) Updates the properties of a vertex- Specified by:
updateEntityin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
lineageEntity- - LineageEntity object that has the updated values
-
upsertRelationship
public 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- Specified by:
upsertRelationshipin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
lineageRelationship- relationship to be updated or created
-
updateRelationship
public void updateRelationship(org.odpi.openmetadata.accessservices.assetlineage.model.LineageRelationship lineageRelationship) Updates the properties of an edge- Specified by:
updateRelationshipin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
lineageRelationship- - lineageRelationship object that has the updated values
-
updateClassification
public void updateClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Updates the classification of a vertex- Specified by:
updateClassificationin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
classificationContext- - LineageEntity object that has the updated values
-
deleteClassification
public void deleteClassification(Set<org.odpi.openmetadata.accessservices.assetlineage.model.GraphContext> classificationContext) Deletes a classification of a vertex- Specified by:
deleteClassificationin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Parameters:
classificationContext- - any remaining classifications, empty map if none
-
deleteRelationship
- Specified by:
deleteRelationshipin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
deleteEntity
- Specified by:
deleteEntityin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
saveAssetLineageUpdateTime
- Specified by:
saveAssetLineageUpdateTimein interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
handleSaveAssetLineageUpdateTimeException
-
getAssetLineageUpdateTime
- Specified by:
getAssetLineageUpdateTimein interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph
-
isEntityInGraph
- Specified by:
isEntityInGraphin interfaceorg.odpi.openmetadata.governanceservers.openlineage.graph.LineageGraph- Returns:
-