Class SqlgGraph

java.lang.Object
org.umlg.sqlg.structure.SqlgGraph
All Implemented Interfaces:
AutoCloseable, org.apache.tinkerpop.gremlin.structure.Graph, org.apache.tinkerpop.gremlin.structure.util.Host

public class SqlgGraph extends Object implements org.apache.tinkerpop.gremlin.structure.Graph
Date: 2014/07/12 Time: 5:38 AM
  • Field Details

  • Method Details

    • open

      public static <G extends org.apache.tinkerpop.gremlin.structure.Graph> G open(String pathToSqlgProperties)
    • open

      public static <G extends org.apache.tinkerpop.gremlin.structure.Graph> G open(org.apache.commons.configuration2.Configuration configuration)
    • getJdbcUrl

      public String getJdbcUrl()
    • getTopology

      public Topology getTopology()
    • getSchemaTableTreeCache

      public SchemaTableTreeCache getSchemaTableTreeCache()
    • getGremlinParser

      public GremlinParser getGremlinParser()
    • getSqlDialect

      public SqlDialect getSqlDialect()
    • traversal

      public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
      Specified by:
      traversal in interface org.apache.tinkerpop.gremlin.structure.Graph
    • topology

      public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource topology()
    • configuration

      public org.apache.commons.configuration2.Configuration configuration()
      Specified by:
      configuration in interface org.apache.tinkerpop.gremlin.structure.Graph
    • addVertex

      public org.apache.tinkerpop.gremlin.structure.Vertex addVertex(String label, Map<String,Object> keyValues)
    • addVertex

      public org.apache.tinkerpop.gremlin.structure.Vertex addVertex(Object... keyValues)
      Specified by:
      addVertex in interface org.apache.tinkerpop.gremlin.structure.Graph
    • addTemporaryVertex

      public void addTemporaryVertex(Object... keyValues)
    • streamVertex

      public void streamVertex(String label)
    • streamVertex

      public void streamVertex(Object... keyValues)
    • streamVertex

      public void streamVertex(String label, LinkedHashMap<String,Object> keyValues)
    • streamTemporaryVertex

      public void streamTemporaryVertex(String label, LinkedHashMap<String,Object> keyValues)
    • bulkAddEdges

      public <L, R> void bulkAddEdges(String outVertexLabel, String inVertexLabel, String edgeLabel, org.apache.commons.lang3.tuple.Pair<String,String> idFields, Collection<org.apache.commons.lang3.tuple.Pair<L,R>> uids, Object... keyValues)
    • compute

      public <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException
      Specified by:
      compute in interface org.apache.tinkerpop.gremlin.structure.Graph
      Throws:
      IllegalArgumentException
    • compute

      public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute()
      Specified by:
      compute in interface org.apache.tinkerpop.gremlin.structure.Graph
    • vertices

      public Iterator<org.apache.tinkerpop.gremlin.structure.Vertex> vertices(Object... vertexIds)
      Specified by:
      vertices in interface org.apache.tinkerpop.gremlin.structure.Graph
    • edges

      public Iterator<org.apache.tinkerpop.gremlin.structure.Edge> edges(Object... edgeIds)
      Specified by:
      edges in interface org.apache.tinkerpop.gremlin.structure.Graph
    • tx

      public SqlgTransaction tx()
      Specified by:
      tx in interface org.apache.tinkerpop.gremlin.structure.Graph
    • variables

      public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()
      Specified by:
      variables in interface org.apache.tinkerpop.gremlin.structure.Graph
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.apache.tinkerpop.gremlin.structure.Graph
    • io

      public <I extends org.apache.tinkerpop.gremlin.structure.io.Io> I io(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder)
      Specified by:
      io in interface org.apache.tinkerpop.gremlin.structure.Graph
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • features

      public SqlgGraph.ISqlGFeatures features()
      Specified by:
      features in interface org.apache.tinkerpop.gremlin.structure.Graph
    • gis

      public <X> X gis()
    • query

      public String query(String query)
      This is executes a sql query and returns the result as a json string.
      Parameters:
      query - The sql to executeRegularQuery.
      Returns:
      The query result as json.
    • createVertexLabeledIndex

      @Deprecated public void createVertexLabeledIndex(String label, Object... dummykeyValues)
    • countVertices

      public long countVertices()
    • countEdges

      public long countEdges()
    • getConnection

      public Connection getConnection() throws SQLException
      Throws:
      SQLException
    • getSqlgDataSource

      public SqlgDataSource getSqlgDataSource()
    • getBuildVersion

      public String getBuildVersion()
      get the sqlg build version
      Returns:
      the build version