Class GraphGremlinBase


  • public class GraphGremlinBase
    extends Object
    • Field Detail

      • graph

        protected org.apache.tinkerpop.gremlin.structure.Graph graph
      • g

        protected org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource g
      • supportingTransactions

        protected boolean supportingTransactions
    • Constructor Detail

      • GraphGremlinBase

        public GraphGremlinBase​(ConnectionProperties connectionProperties)
        Constructs a graph using the given properties.
        Parameters:
        connectionProperties - the properties coming from the request
    • Method Detail

      • openGraph

        public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource openGraph()
        Opens the graph instance. If the graph instance does not exist, a new graph instance will be initialized.
      • closeGraph

        public void closeGraph()
                        throws Exception
        Closes the graph instance.
        Throws:
        Exception
      • dropGraph

        public void dropGraph()
                       throws Exception
        Drops the graph instance. The default implementation does nothing.
        Throws:
        Exception
      • createSchema

        protected void createSchema()
        Creates the graph schema. The default implementation does nothing.
      • updateElements

        public void updateElements()
        Makes an update to the existing graph structure. Does not create any new vertices or edges.
      • isSupportingTransactions

        public boolean isSupportingTransactions()
        Returns transaction support property of the specific graph instance.