Class: AnonymousTraversalSource

AnonymousTraversalSource(traversalSourceClassopt)

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(traversalSourceClassopt)

Creates a new instance of AnonymousTraversalSource.
Parameters:
Name Type Attributes Description
traversalSourceClass function <optional>
Optional {@code GraphTraversalSource} constructor.
Source:

Methods

(static) traversal(traversalSourceClassopt) → {AnonymousTraversalSource}

Constructs an {@code AnonymousTraversalSource} which will then be configured to spawn a GraphTraversalSource.
Parameters:
Name Type Attributes Description
traversalSourceClass function <optional>
Optional {@code GraphTraversalSource} constructor.
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