Class DefaultFlushProvider
- java.lang.Object
-
- com.ensoftcorp.open.commons.sandbox.DefaultFlushProvider
-
- All Implemented Interfaces:
FlushProvider
public class DefaultFlushProvider extends java.lang.Object implements FlushProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultFlushProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ensoftcorp.atlas.core.db.graph.GraphElement
flush(SandboxGraphElement ge, java.util.Map<java.lang.String,SandboxGraphElement> addresses)
Flushes the changes made or creation of a sandbox graph element to the Atlas graph and updates the address map accordinglycom.ensoftcorp.atlas.core.db.graph.Graph
flush(SandboxGraph graph, java.util.Map<java.lang.String,SandboxGraphElement> addresses)
Flushes the changes made in the sandbox that are restricted to the nodes and edges in the given graph to the Atlas graph This methods does the following: 1) Adds nodes/edges that are not mirrored to the Atlas graph with the current tags/attributes 2) Updates (adds/removes) tags and attributes from the corresponding Atlas graph element's to match the current sandbox tags/attributes for each node/edge in the sandbox.
-
-
-
Method Detail
-
flush
public com.ensoftcorp.atlas.core.db.graph.Graph flush(SandboxGraph graph, java.util.Map<java.lang.String,SandboxGraphElement> addresses)
Flushes the changes made in the sandbox that are restricted to the nodes and edges in the given graph to the Atlas graph This methods does the following: 1) Adds nodes/edges that are not mirrored to the Atlas graph with the current tags/attributes 2) Updates (adds/removes) tags and attributes from the corresponding Atlas graph element's to match the current sandbox tags/attributes for each node/edge in the sandbox.- Specified by:
flush
in interfaceFlushProvider
- Parameters:
graph
- the graph containing the set of nodes and edges to flush- Returns:
- The serialized Atlas graph version of the sandbox
-
flush
public com.ensoftcorp.atlas.core.db.graph.GraphElement flush(SandboxGraphElement ge, java.util.Map<java.lang.String,SandboxGraphElement> addresses)
Flushes the changes made or creation of a sandbox graph element to the Atlas graph and updates the address map accordingly- Parameters:
ge
-- Returns:
-
-