Class: AnonymousTraversalSource

AnonymousTraversalSource(traversalSourceClassopt, traversalClassopt)

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, traversalClassopt)

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

Methods

(static) traversal(traversalSourceClassopt, traversalClassopt) → {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.
traversalClass function <optional>
Optional {@code GraphTraversalSource} constructor.
Source:
Returns:
.
Type
AnonymousTraversalSource

with_(connection) → {GraphTraversalSource}

Creates a GraphTraversalSource binding a RemoteConnection to a remote Graph instances as its reference so that traversals spawned from it will execute over that reference.
Parameters:
Name Type Description
connection RemoteConnection
Source:
Returns:
Type
GraphTraversalSource

withRemote(remoteConnection) → {GraphTraversalSource}

Creates a GraphTraversalSource binding a RemoteConnection to a remote Graph instances as its reference so that traversals spawned from it will execute over that reference.
Parameters:
Name Type Description
remoteConnection RemoteConnection
Deprecated:
  • As of release 3.8.0, prefer with_.
Source:
Returns:
Type
GraphTraversalSource