@Service @ConfigurationProperties(prefix="lineage-display-config") public class LineageGraphDisplayService extends Object
| Constructor and Description |
|---|
LineageGraphDisplayService() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRules(Graph graph,
String queriedNodeGUID)
This method applies the rules defined in the properties file on the graph.
|
Rules |
getRules() |
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.
|
void |
setRules(Rules rules) |
String |
toString() |
public Rules getRules()
public void setRules(Rules rules)
public void applyRules(Graph graph, String queriedNodeGUID)
graph - graph processed from the response from open lineagequeriedNodeGUID - the GUID of the queried nodepublic void setNodesLevel(List<Node> startNodes, List<Node> listNodes, List<Edge> listEdges)
startNodes - the starting nodeslistNodes - the list of nodeslistEdges - the list of edgesCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.