Class LineageGraphDisplayService


  • @Service
    @ConfigurationProperties(prefix="lineage-display-config")
    public class LineageGraphDisplayService
    extends Object
    This component matches the properties provided under lineage-display-config which provide rules based on which the edge's direction will be inverted
    • Constructor Detail

      • LineageGraphDisplayService

        public LineageGraphDisplayService()
    • Method Detail

      • getRules

        public Rules getRules()
      • setRules

        public void setRules​(Rules rules)
      • applyRules

        public void applyRules​(Graph graph,
                               String queriedNodeGUID)
        This method applies the rules defined in the properties file on the graph.
        Parameters:
        graph - graph processed from the response from open lineage
        queriedNodeGUID - the GUID of the queried node
      • setNodesLevel

        public void setNodesLevel​(List<Node> startNodes,
                                  List<Node> listNodes,
                                  List<Edge> listEdges)
        sets the level field for the nodes, in order to be displayed on levels Stars from a start list of nodes and sets a the level+1 for the nodes on the ends of "to" edges and legel -1 for the nodes from the "from" end of it's edges once an edge or node is processed is removed from the list.
        Parameters:
        startNodes - the starting nodes
        listNodes - the list of nodes
        listEdges - the list of edges