Class: AnonymousTraversalSource

AnonymousTraversalSource()

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.

Constructor

new AnonymousTraversalSource()

Source:

Methods

(static) traversal() → {AnonymousTraversalSource}

Constructs an {@code AnonymousTraversalSource} which will then be configured to spawn a GraphTraversalSource.
Source:
Returns:
.
Type
AnonymousTraversalSource

withGraph(graph) → {GraphTraversalSource}

Creates the specified GraphTraversalSource binding a Graph as its reference such that traversals spawned from it will execute over that reference.
Parameters:
Name Type Description
graph Graph
Source:
Returns:
Type
GraphTraversalSource

withRemote(remoteConnection) → {GraphTraversalSource}

Creates the specified binding a {@link RemoteConnection as its reference such that traversals spawned from it will execute over that reference.
Parameters:
Name Type Description
remoteConnection GraphTraversalSource
Source:
Returns:
Type
GraphTraversalSource