|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.util.GraphUtil
public class GraphUtil
Utility for working with acyclic graph: determines cyclic dependency and dependency-satisfying processing order.
Constructor Summary | |
---|---|
GraphUtil()
|
Method Summary | |
---|---|
static java.util.Set<java.lang.String> |
getTopDownOrder(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> graph)
Check cyclic dependency and determine processing order for the given graph. |
static java.util.Map<java.lang.String,java.lang.Object> |
mergeNestableMap(java.util.Map<java.lang.String,java.lang.Object> original,
java.util.Map<java.lang.String,java.lang.Object> additional)
Deep-merge a map into another map returning a result map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphUtil()
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.Object> mergeNestableMap(java.util.Map<java.lang.String,java.lang.Object> original, java.util.Map<java.lang.String,java.lang.Object> additional)
Copies all values present in the original map to a new map, adding additional value present in the second map passed in, ignoring same-key values in the second map that are present in the original.
If the value is a Map itself, repeats the operation on the Map value.
original
- nestable Map of entries to retain and not overwriteadditional
- nestable Map of entries to add to the original
public static java.util.Set<java.lang.String> getTopDownOrder(java.util.Map<java.lang.String,java.util.Set<java.lang.String>> graph) throws GraphCircularDependencyException
graph
- is represented as child nodes that have one or more parent nodes that they are dependent on
GraphCircularDependencyException
- if a dependency has been detected
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |