public class AnonymousTraversalSource<T extends TraversalSource> extends Object
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.| Modifier and Type | Method and Description | 
|---|---|
static AnonymousTraversalSource<GraphTraversalSource> | 
traversal()
Constructs an  
AnonymousTraversalSource which will then be configured to spawn a
 GraphTraversalSource. | 
static <T extends TraversalSource> | 
traversal(Class<T> traversalSourceClass)
Constructs an  
AnonymousTraversalSource which will then be configured to spawn the specified
 TraversalSource. | 
T | 
withEmbedded(Graph graph)
Creates the specified  
TraversalSource binding an embedded Graph as its reference such that
 traversals spawned from it will execute over that reference. | 
T | 
withGraph(Graph graph)
Deprecated. 
 
As of release 3.4.9, replaced by  
withEmbedded(Graph) | 
T | 
withRemote(org.apache.commons.configuration.Configuration conf)
Creates a  
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference. | 
T | 
withRemote(org.apache.tinkerpop.gremlin.process.remote.RemoteConnection remoteConnection)
Creates a  
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference. | 
T | 
withRemote(String configFile)
Creates a  
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference. | 
public static AnonymousTraversalSource<GraphTraversalSource> traversal()
AnonymousTraversalSource which will then be configured to spawn a
 GraphTraversalSource.public static <T extends TraversalSource> AnonymousTraversalSource<T> traversal(Class<T> traversalSourceClass)
AnonymousTraversalSource which will then be configured to spawn the specified
 TraversalSource.public T withRemote(String configFile) throws Exception
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference.configFile - a path to a file that would normally be provided to configure a RemoteConnectionExceptionpublic T withRemote(org.apache.commons.configuration.Configuration conf)
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference.conf - a Configuration object that would normally be provided to configure a RemoteConnectionpublic T withRemote(org.apache.tinkerpop.gremlin.process.remote.RemoteConnection remoteConnection)
TraversalSource binding a RemoteConnection to a remote Graph instances as its
 reference so that traversals spawned from it will execute over that reference.public T withGraph(Graph graph)
withEmbedded(Graph)TraversalSource binding an embedded Graph as its reference such that
 traversals spawned from it will execute over that reference.public T withEmbedded(Graph graph)
TraversalSource binding an embedded Graph as its reference such that
 traversals spawned from it will execute over that reference.Copyright © 2013–2020 Apache Software Foundation. All rights reserved.