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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclassNested 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
GRAPH -
Constructor Summary
ConstructorsConstructorDescriptionSqlgGraph(org.apache.commons.configuration2.Configuration configuration, SqlgDataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTemporaryVertex(Object... keyValues) org.apache.tinkerpop.gremlin.structure.Vertexorg.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) voidclose()org.apache.tinkerpop.gremlin.process.computer.GraphComputercompute()<C extends org.apache.tinkerpop.gremlin.process.computer.GraphComputer>
Corg.apache.commons.configuration2.ConfigurationlonglongvoidcreateVertexLabeledIndex(String label, Object... dummykeyValues) Deprecated.Iterator<org.apache.tinkerpop.gremlin.structure.Edge>features()get the sqlg build version<X> Xgis()protected SqlgServiceRegistry.SqlgServiceFactoryinstantiate(String className) <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.voidstreamTemporaryVertex(String label, LinkedHashMap<String, Object> keyValues) voidstreamVertex(Object... keyValues) voidstreamVertex(String label) voidstreamVertex(String label, LinkedHashMap<String, Object> keyValues) org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSourcetopology()toString()tx()org.apache.tinkerpop.gremlin.structure.Graph.VariablesIterator<org.apache.tinkerpop.gremlin.structure.Vertex>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Graph
addVertex, traversal, tx
-
Field Details
-
GREMLIN_SQLG_SERVICE
- See Also:
-
DATA_SOURCE
- See Also:
-
JDBC_URL
- See Also:
-
DISTRIBUTED
- See Also:
-
-
Constructor Details
-
SqlgGraph
public SqlgGraph(org.apache.commons.configuration2.Configuration configuration, SqlgDataSource dataSource)
-
-
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) -
getServiceRegistry
- Specified by:
getServiceRegistryin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
instantiate
-
getJdbcUrl
-
getTopology
-
getSchemaTableTreeCache
-
getGremlinParser
-
getSqlDialect
-
traversal
- Specified by:
traversalin 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:
configurationin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
addVertex
-
addVertex
- Specified by:
addVertexin 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:
computein interfaceorg.apache.tinkerpop.gremlin.structure.Graph- Throws:
IllegalArgumentException
-
compute
public org.apache.tinkerpop.gremlin.process.computer.GraphComputer compute()- Specified by:
computein interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
vertices
- Specified by:
verticesin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
edges
- Specified by:
edgesin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
tx
- Specified by:
txin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
variables
public org.apache.tinkerpop.gremlin.structure.Graph.Variables variables()- Specified by:
variablesin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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:
ioin interfaceorg.apache.tinkerpop.gremlin.structure.Graph
-
toString
-
features
- Specified by:
featuresin 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).