Class LineageGraphStorageService
java.lang.Object
org.odpi.openmetadata.openconnectors.governancedaemonconnectors.openlineageconnectors.janusconnector.graph.LineageGraphStorageService
- All Implemented Interfaces:
LineageGraph
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteClassification
(Set<GraphContext> classificationContext) Deletes a classification of a vertexvoid
deleteEntity
(String guid, Object version) /** Deletes a vertex in the graphvoid
deleteRelationship
(String guid) Deletes a relationship in the graphGets last asset lineage update time from the graphvoid
isEntityInGraph
(String guid) Returns whether an entity exists in the graph or notvoid
saveAssetLineageUpdateTime
(Long lastUpdateTime) Save last asset lineage update time in the graphvoid
storeToGraph
(Set<GraphContext> graphContext) Creates vertices and the relationships between themvoid
updateClassification
(Set<GraphContext> classificationContext) Updates the classification of a vertexvoid
updateEntity
(LineageEntity lineageEntity) Updates the properties of a vertexvoid
updateNeighbours
(LineageSyncUpdateContext syncUpdateContext) Updates the neighbours of a node by removing all the entities that no longer have a relationship with it.void
updateRelationship
(LineageRelationship lineageRelationship) Updates the properties of an edgevoid
upsertRelationship
(LineageRelationship lineageRelationship) Create or update the relationship between two edges In case the vertexes are not created, they are firstly created
-
Constructor Details
-
LineageGraphStorageService
-
-
Method Details
-
storeToGraph
Creates vertices and the relationships between them- Specified by:
storeToGraph
in interfaceLineageGraph
- Parameters:
graphContext
- - graph Collection that contains vertices and edges to be stored
-
updateNeighbours
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:
updateNeighbours
in interfaceLineageGraph
-
updateEntity
Updates the properties of a vertex- Specified by:
updateEntity
in interfaceLineageGraph
- Parameters:
lineageEntity
- - LineageEntity object that has the updated values
-
upsertRelationship
Create or update the relationship between two edges In case the vertexes are not created, they are firstly created- Specified by:
upsertRelationship
in interfaceLineageGraph
- Parameters:
lineageRelationship
- relationship to be updated or created
-
updateRelationship
Updates the properties of an edge- Specified by:
updateRelationship
in interfaceLineageGraph
- Parameters:
lineageRelationship
- - lineageRelationship object that has the updated values
-
updateClassification
Updates the classification of a vertex- Specified by:
updateClassification
in interfaceLineageGraph
- Parameters:
classificationContext
- - LineageEntity object that has the updated values
-
deleteClassification
Deletes a classification of a vertex- Specified by:
deleteClassification
in interfaceLineageGraph
- Parameters:
classificationContext
- - any remaining classifications, empty map if none
-
deleteRelationship
Description copied from interface:LineageGraph
Deletes a relationship in the graph- Specified by:
deleteRelationship
in interfaceLineageGraph
- Parameters:
guid
- unique identifier of the entity to be deleted
-
deleteEntity
Description copied from interface:LineageGraph
/** Deletes a vertex in the graph- Specified by:
deleteEntity
in interfaceLineageGraph
- Parameters:
guid
- unique identifier of the entity to be deletedversion
- version of the entity to be deleted
-
saveAssetLineageUpdateTime
Description copied from interface:LineageGraph
Save last asset lineage update time in the graph- Specified by:
saveAssetLineageUpdateTime
in interfaceLineageGraph
- Parameters:
lastUpdateTime
- the standard epoch time in milliseconds
-
handleSaveAssetLineageUpdateTimeException
-
getAssetLineageUpdateTime
Description copied from interface:LineageGraph
Gets last asset lineage update time from the graph- Specified by:
getAssetLineageUpdateTime
in interfaceLineageGraph
- Returns:
- last update time represented as epoch time milliseconds
-
isEntityInGraph
Returns whether an entity exists in the graph or not- Specified by:
isEntityInGraph
in interfaceLineageGraph
- Parameters:
guid
- the lineage entity guid- Returns:
-