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:
.
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