Class LineageGraphStorageService
java.lang.Object
org.odpi.openmetadata.openconnectors.governancedaemonconnectors.lineagewarehouseconnectors.janusconnector.graph.LineageGraphStorageService
- All Implemented Interfaces:
LineageWarehouseGraphStorageService
public class LineageGraphStorageService
extends Object
implements LineageWarehouseGraphStorageService
-
Constructor Summary
-
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 interfaceLineageWarehouseGraphStorageService
- 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 interfaceLineageWarehouseGraphStorageService
- Parameters:
syncUpdateContext
- contains the context for syncing the relationships of a node after an update.
-
updateEntity
Updates the properties of a vertex- Specified by:
updateEntity
in interfaceLineageWarehouseGraphStorageService
- 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 interfaceLineageWarehouseGraphStorageService
- Parameters:
lineageRelationship
- relationship to be updated or created
-
updateRelationship
Updates the properties of an edge- Specified by:
updateRelationship
in interfaceLineageWarehouseGraphStorageService
- Parameters:
lineageRelationship
- - lineageRelationship object that has the updated values
-
updateClassification
Updates the classification of a vertex- Specified by:
updateClassification
in interfaceLineageWarehouseGraphStorageService
- Parameters:
classificationContext
- - LineageEntity object that has the updated values
-
deleteClassification
Deletes a classification of a vertex- Specified by:
deleteClassification
in interfaceLineageWarehouseGraphStorageService
- Parameters:
classificationContext
- - any remaining classifications, empty map if none
-
deleteRelationship
Description copied from interface:LineageWarehouseGraphStorageService
Deletes a relationship in the graph- Specified by:
deleteRelationship
in interfaceLineageWarehouseGraphStorageService
- Parameters:
guid
- unique identifier of the entity to be deleted
-
deleteEntity
Description copied from interface:LineageWarehouseGraphStorageService
Deletes a vertex in the graph- Specified by:
deleteEntity
in interfaceLineageWarehouseGraphStorageService
- Parameters:
guid
- unique identifier of the entity to be deletedversion
- version of the entity to be deleted
-
saveAssetLineageUpdateTime
Description copied from interface:LineageWarehouseGraphStorageService
Save last asset lineage update time in the graph- Specified by:
saveAssetLineageUpdateTime
in interfaceLineageWarehouseGraphStorageService
- Parameters:
lastUpdateTime
- the standard epoch time in milliseconds
-
handleSaveAssetLineageUpdateTimeException
-
getAssetLineageUpdateTime
Description copied from interface:LineageWarehouseGraphStorageService
Gets last asset lineage update time from the graph- Specified by:
getAssetLineageUpdateTime
in interfaceLineageWarehouseGraphStorageService
- Returns:
- last update time represented as epoch time milliseconds
-
isEntityInGraph
Returns whether an entity exists in the graph or not- Specified by:
isEntityInGraph
in interfaceLineageWarehouseGraphStorageService
- Parameters:
guid
- the lineage entity guid- Returns:
-