Class 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 accordingly
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultFlushProvider

        public DefaultFlushProvider()
    • 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 interface FlushProvider
        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: