public final class DseGraph extends Object
Constructor and Description |
---|
DseGraph() |
Modifier and Type | Method and Description |
---|---|
static <S,E> GraphStatement |
statementFromTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<S,E> traversal)
|
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource |
traversal()
Create a
GraphTraversalSource that will be used
to build Traversal s for using with the statementFromTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<S, E>)
method. |
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource |
traversal(DseSession dseSession)
Create a
GraphTraversalSource initialized to work remotely
with a DSE Graph server, communicating via the DataStax Enterprise Java Driver. |
static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource |
traversal(DseSession dseSession,
GraphOptions graphOptions)
Create a
GraphTraversalSource initialized to work remotely
with a DSE Graph server, communicating via the DataStax Enterprise Java Driver. |
public static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal()
GraphTraversalSource
that will be used
to build Traversal
s for using with the statementFromTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<S, E>)
method.
Iterating on a GraphTraversalSource
created with this method
will not work.EmptyGraph
.public static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal(DseSession dseSession, GraphOptions graphOptions)
GraphTraversalSource
initialized to work remotely
with a DSE Graph server, communicating via the DataStax Enterprise Java Driver.dseSession
- an initialized and active session created with a DseCluster
that will be used internally to communicate with the DSE server.
All of the configurations made on the DseSession's creation will
be effective when the traversal source is used.graphOptions
- configurations to use for this traversal source. The options
on this object will override the ones defined on the GraphOptions
of the DseCluster
behind the DseSession
input.public static org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource traversal(DseSession dseSession)
GraphTraversalSource
initialized to work remotely
with a DSE Graph server, communicating via the DataStax Enterprise Java Driver.dseSession
- an initialized and active session created with a DseCluster
that will be used internally to communicate with the DSE server.
All of the configurations made on the DseSession's creation will
be effective when the traversal source is used.public static <S,E> GraphStatement statementFromTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<S,E> traversal)
traversal
- the Traversal to use to create the statement.DseSession.executeGraph(java.lang.String)
or DseSession.executeGraphAsync(java.lang.String)
call.Copyright © 2012–2017. All rights reserved.