Package ai.stapi.graph.inMemoryGraph
Class NodeEdgesMapOperation
java.lang.Object
ai.stapi.graph.inMemoryGraph.NodeEdgesMapOperation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> create(InMemoryGraphRepository graph) static ConcurrentSkipListSet<TraversableEdge>getNodeEdges(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, ai.stapi.identity.UniqueIdentifier nodeId, String nodeType) static ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> removeEdge(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, Edge edge) static ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> upsertEdge(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, TraversableEdge edge)
-
Constructor Details
-
NodeEdgesMapOperation
public NodeEdgesMapOperation()
-
-
Method Details
-
create
public static ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> create(InMemoryGraphRepository graph) -
getNodeEdges
public static ConcurrentSkipListSet<TraversableEdge> getNodeEdges(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, ai.stapi.identity.UniqueIdentifier nodeId, String nodeType) -
upsertEdge
public static ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> upsertEdge(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, TraversableEdge edge) -
removeEdge
public static ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier,ConcurrentSkipListSet<TraversableEdge>> removeEdge(ConcurrentHashMap<ai.stapi.identity.UniqueIdentifier, ConcurrentSkipListSet<TraversableEdge>> map, Edge edge)
-