Class AnonymousTraversalSource<T extends TraversalSource>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource<T>
 
- 
 public class AnonymousTraversalSource<T extends TraversalSource> extends Object Provides a unified way to construct aTraversalSourcefrom the perspective of the traversal. In this syntax the user is creating the source and binding it to a reference which is either an existingGraphinstance or aRemoteConnection.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AnonymousTraversalSource<GraphTraversalSource>traversal()Constructs anAnonymousTraversalSourcewhich will then be configured to spawn aGraphTraversalSource.static <T extends TraversalSource>
 AnonymousTraversalSource<T>traversal(Class<T> traversalSourceClass)Constructs anAnonymousTraversalSourcewhich will then be configured to spawn the specifiedTraversalSource.TwithEmbedded(Graph graph)Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference.TwithGraph(Graph graph)Deprecated.As of release 3.4.9, replaced bywithEmbedded(Graph)TwithRemote(String configFile)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.TwithRemote(org.apache.commons.configuration2.Configuration conf)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.TwithRemote(org.apache.tinkerpop.gremlin.process.remote.RemoteConnection remoteConnection)Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.
 
- 
- 
- 
Method Detail- 
traversalpublic static AnonymousTraversalSource<GraphTraversalSource> traversal() Constructs anAnonymousTraversalSourcewhich will then be configured to spawn aGraphTraversalSource.
 - 
traversalpublic static <T extends TraversalSource> AnonymousTraversalSource<T> traversal(Class<T> traversalSourceClass) Constructs anAnonymousTraversalSourcewhich will then be configured to spawn the specifiedTraversalSource.
 - 
withRemotepublic T withRemote(String configFile) throws Exception 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 a- RemoteConnection
- Throws:
- Exception
 
 - 
withRemotepublic T withRemote(org.apache.commons.configuration2.Configuration conf) Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.- Parameters:
- conf- a- Configurationobject that would normally be provided to configure a- RemoteConnection
 
 - 
withRemotepublic T withRemote(org.apache.tinkerpop.gremlin.process.remote.RemoteConnection remoteConnection) Creates aTraversalSourcebinding aRemoteConnectionto a remoteGraphinstances as its reference so that traversals spawned from it will execute over that reference.
 - 
withGraph@Deprecated public T withGraph(Graph graph) Deprecated.As of release 3.4.9, replaced bywithEmbedded(Graph)Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference.
 - 
withEmbeddedpublic T withEmbedded(Graph graph) Creates the specifiedTraversalSourcebinding an embeddedGraphas its reference such that traversals spawned from it will execute over that reference.
 
- 
 
-