Class LineageGraphStorageService

    • Constructor Detail

      • LineageGraphStorageService

        public LineageGraphStorageService​(GraphHelper graphHelper,
                                          AuditLog auditLog)
    • Method Detail

      • storeToGraph

        public void storeToGraph​(Set<GraphContext> graphContext)
        Creates vertices and the relationships between them
        Specified by:
        storeToGraph in interface LineageGraph
        Parameters:
        graphContext - - graph Collection that contains vertices and edges to be stored
      • updateNeighbours

        public void updateNeighbours​(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:
        updateNeighbours in interface LineageGraph
      • updateEntity

        public void updateEntity​(LineageEntity lineageEntity)
        Updates the properties of a vertex
        Specified by:
        updateEntity in interface LineageGraph
        Parameters:
        lineageEntity - - LineageEntity object that has the updated values
      • upsertRelationship

        public void upsertRelationship​(LineageRelationship lineageRelationship)
        Create or update the relationship between two edges In case the vertexes are not created, they are firstly created
        Specified by:
        upsertRelationship in interface LineageGraph
        Parameters:
        lineageRelationship - relationship to be updated or created
      • updateRelationship

        public void updateRelationship​(LineageRelationship lineageRelationship)
        Updates the properties of an edge
        Specified by:
        updateRelationship in interface LineageGraph
        Parameters:
        lineageRelationship - - lineageRelationship object that has the updated values
      • updateClassification

        public void updateClassification​(Set<GraphContext> classificationContext)
        Updates the classification of a vertex
        Specified by:
        updateClassification in interface LineageGraph
        Parameters:
        classificationContext - - LineageEntity object that has the updated values
      • deleteClassification

        public void deleteClassification​(Set<GraphContext> classificationContext)
        Deletes a classification of a vertex
        Specified by:
        deleteClassification in interface LineageGraph
        Parameters:
        classificationContext - - any remaining classifications, empty map if none
      • handleSaveAssetLineageUpdateTimeException

        public void handleSaveAssetLineageUpdateTimeException​(Exception e)