Class LineageGraphConnector

    • Constructor Detail

      • LineageGraphConnector

        public LineageGraphConnector()
    • Method Detail

      • performLineageGraphJob

        public void performLineageGraphJob()
      • saveAssetLineageUpdateTime

        public void saveAssetLineageUpdateTime​(Long lastUpdateTime)
      • getAssetLineageUpdateTime

        public Optional<Long> getAssetLineageUpdateTime()
      • storeToGraph

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

        public void updateNeighbours​(String nodeGUID,
                                     Set<String> neighboursGUIDS)
        Updates the neighbours of a node by removing all the entities that no longer have a relationship with it.
        Parameters:
        nodeGUID - - the identifier of the entity that was updated
        neighboursGUIDS - - the identifiers of the nodes that have a direct relationship to the entity
      • updateEntity

        public void updateEntity​(LineageEntity lineageEntity)
        Updates the properties of a vertex
        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
        Parameters:
        lineageRelationship - relationship to be updated or created
      • updateRelationship

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

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

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

        public void deleteEntity​(String guid,
                                 Object version)
      • deleteRelationship

        public void deleteRelationship​(String guid)
      • isEntityInGraph

        public boolean isEntityInGraph​(String guid)