public class DseGraph extends Object
| Modifier and Type | Field and Description |
|---|---|
static GraphTraversalSource |
g
A general-purpose shortcut for a non-connected TinkerPop
GraphTraversalSource
based on an immutable empty graph. |
| Modifier and Type | Method and Description |
|---|---|
static DseGraphRemoteConnectionBuilder |
remoteConnectionBuilder(DseSession dseSession)
Returns a builder helper class to help create
RemoteConnection implementations that seamlessly
connect to DSE Graph using the DseSession in parameter. |
public static final GraphTraversalSource g
GraphTraversalSource
based on an immutable empty graph. This is really just a shortcut to EmptyGraph.instance().traversal();.
Can be used to create FluentGraphStatement instances (recommended), or can be
configured to be remotely connected to DSE Graph using the remoteConnectionBuilder(com.datastax.dse.driver.api.core.DseSession)
method.
For ease of use you may statically import this variable.
Calling g.getGraph() will return a local immutable empty graph which is in no way
connected to the DSE Graph server, it will not allow to modify a DSE Graph directly. To act on
data stored in DSE Graph you must use traversals such as
DseGraph.g.V(), DseGraph.g.addV/addE().
public static DseGraphRemoteConnectionBuilder remoteConnectionBuilder(DseSession dseSession)
RemoteConnection implementations that seamlessly
connect to DSE Graph using the DseSession in parameter.Copyright © 2017–2019. All rights reserved.