Package org.umlg.sqlg.structure
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
Date: 2014/07/12
Time: 5:38 AM
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
class
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
org.apache.tinkerpop.gremlin.structure.Graph.Exceptions, org.apache.tinkerpop.gremlin.structure.Graph.Features, org.apache.tinkerpop.gremlin.structure.Graph.Hidden, org.apache.tinkerpop.gremlin.structure.Graph.OptIn, org.apache.tinkerpop.gremlin.structure.Graph.OptIns, org.apache.tinkerpop.gremlin.structure.Graph.OptOut, org.apache.tinkerpop.gremlin.structure.Graph.OptOuts, org.apache.tinkerpop.gremlin.structure.Graph.Variables
-
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
GRAPH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTemporaryVertex
(Object... keyValues) org.apache.tinkerpop.gremlin.structure.Vertex
org.apache.tinkerpop.gremlin.structure.Vertex
<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) void
close()
org.apache.tinkerpop.gremlin.process.computer.GraphComputer
compute()
<C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer>
Corg.apache.commons.configuration2.Configuration
long
long
void
createVertexLabeledIndex
(String label, Object... dummykeyValues) Deprecated.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>
features()
get the sqlg build version<X> X
gis()
<I extends org.apache.tinkerpop.gremlin.structure.io.Io>
Iio
(org.apache.tinkerpop.gremlin.structure.io.Io.Builder<I> builder) static <G extends org.apache.tinkerpop.gremlin.structure.Graph>
Gstatic <G extends org.apache.tinkerpop.gremlin.structure.Graph>
Gopen
(org.apache.commons.configuration2.Configuration configuration) This is executes a sql query and returns the result as a json string.void
streamTemporaryVertex
(String label, LinkedHashMap<String, Object> keyValues) void
streamVertex
(Object... keyValues) void
streamVertex
(String label) void
streamVertex
(String label, LinkedHashMap<String, Object> keyValues) org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
topology()
toString()
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
tx()
org.apache.tinkerpop.gremlin.structure.Graph.Variables
Iterator<org.apache.tinkerpop.gremlin.structure.Vertex>
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
addVertex, getServiceRegistry, traversal, tx
-
Field Details
-
DATA_SOURCE
- See Also:
-
JDBC_URL
- See Also:
-
DISTRIBUTED
- See Also:
-
-
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
-
getTopology
-
getSchemaTableTreeCache
-
getGremlinParser
-
getSqlDialect
-
traversal
public org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()- Specified by:
traversal
in interfaceorg.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 interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
addVertex
-
addVertex
- Specified by:
addVertex
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
addTemporaryVertex
-
streamVertex
-
streamVertex
-
streamVertex
-
streamTemporaryVertex
-
bulkAddEdges
-
compute
public <C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer> C compute(Class<C> graphComputerClass) throws IllegalArgumentException - Specified by:
compute
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
- Throws:
IllegalArgumentException
-
compute
public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute()- Specified by:
compute
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
vertices
- Specified by:
vertices
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
edges
- Specified by:
edges
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
tx
- Specified by:
tx
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
variables
public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()- Specified by:
variables
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.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 interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
toString
-
features
- Specified by:
features
in interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
gis
public <X> X gis() -
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. -
countVertices
public long countVertices() -
countEdges
public long countEdges() -
getConnection
- Throws:
SQLException
-
getSqlgDataSource
-
getBuildVersion
get the sqlg build version- Returns:
- the build version
-
Topology.ensureVertexLabelExist(String, Map)
andAbstractLabel.ensureIndexExists(IndexType, List)
.