Class AnonymousTraversalSource<T extends TraversalSource>
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource<T>
Provides a unified way to construct a
TraversalSource from the perspective of the traversal. In this syntax
the user is creating the source and binding it to a reference which is either an existing Graph instance
or a RemoteConnection.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Method Summary
Modifier and TypeMethodDescriptionConstructs anAnonymousTraversalSourcewhich will then be configured to spawn aGraphTraversalSource.static <T extends TraversalSource>
AnonymousTraversalSource<T>Constructs anAnonymousTraversalSourcewhich will then be configured to spawn the specifiedTraversalSource.Creates aTraversalSourcefrom a configuration file which may either be for aGraphinstance or for aRemoteConnection.with(org.apache.commons.configuration2.Configuration conf) Creates aTraversalSourcefrom a configuration object which may either be for aGraphinstance or for aRemoteConnection.with(RemoteConnection remoteConnection) Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference.withEmbedded(Graph graph) Deprecated.withRemote(String configFile) Deprecated.As of release 3.8.0, replaced bywith(String)withRemote(org.apache.commons.configuration2.Configuration conf) Deprecated.As of release 3.8.0, replaced bywith(Configuration)withRemote(RemoteConnection remoteConnection) Deprecated.As of release 3.8.0, replaced bywith(RemoteConnection)
-
Method Details
-
traversal
Constructs anAnonymousTraversalSourcewhich will then be configured to spawn aGraphTraversalSource. -
traversal
public static <T extends TraversalSource> AnonymousTraversalSource<T> traversal(Class<T> traversalSourceClass) Constructs anAnonymousTraversalSourcewhich will then be configured to spawn the specifiedTraversalSource. -
withRemote
Deprecated.As of release 3.8.0, replaced bywith(String)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.- Parameters:
configFile- a path to a file that would normally be provided to configure aRemoteConnection- Throws:
Exception
-
withRemote
Deprecated.As of release 3.8.0, replaced bywith(Configuration)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.- Parameters:
conf- aConfigurationobject that would normally be provided to configure aRemoteConnection
-
withRemote
Deprecated.As of release 3.8.0, replaced bywith(RemoteConnection)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference. -
withEmbedded
Deprecated.As of release 3.8.0, replaced bywith(Graph)Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference. -
with
Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference. -
with
Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference. -
with
Creates aTraversalSourcefrom a configuration file which may either be for aGraphinstance or for aRemoteConnection.- Parameters:
configFile- a path to a configuration file- Throws:
Exception
-
with
Creates aTraversalSourcefrom a configuration object which may either be for aGraphinstance or for aRemoteConnection.- Parameters:
conf- aConfigurationobject that would normally be provided to configure aRemoteConnection
-
with(Graph)