public class CredentialTraversalSource extends CredentialTraversalSourceDsl
GraphTraversalSource.Symbols
bytecode, connection, graph, strategies
Constructor and Description |
---|
CredentialTraversalSource(Graph graph) |
CredentialTraversalSource(Graph graph,
TraversalStrategies strategies) |
CredentialTraversalSource(RemoteConnection connection) |
Modifier and Type | Method and Description |
---|---|
CredentialTraversal<Edge,Edge> |
addE(String label)
Spawns a
GraphTraversal by adding a edge with the specified label. |
CredentialTraversal<Edge,Edge> |
addE(Traversal edgeLabelTraversal)
Spawns a
GraphTraversal by adding a edge with a label as specified by the provided Traversal . |
CredentialTraversal<Vertex,Vertex> |
addV()
Spawns a
GraphTraversal by adding a vertex with the default label. |
CredentialTraversal<Vertex,Vertex> |
addV(String label)
Spawns a
GraphTraversal by adding a vertex with the specified label. |
CredentialTraversal<Vertex,Vertex> |
addV(Traversal vertexLabelTraversal)
Spawns a
GraphTraversal by adding a vertex with the label as determined by a Traversal . |
CredentialTraversalSource |
clone()
The clone-method should be used to create immutable traversal sources with each call to a configuration "withXXX"-method.
|
CredentialTraversal<Edge,Edge> |
E(Object... edgeIds)
Spawns a
GraphTraversal starting with all edges or some subset of edges as specified by their unique
identifier. |
Optional<Class<?>> |
getAnonymousTraversalClass() |
<S> CredentialTraversal<S,S> |
inject(S... starts)
Spawns a
GraphTraversal starting it with arbitrary values. |
CredentialTraversal<Vertex,Vertex> |
user(String username,
String password)
Creates or updates a user.
|
CredentialTraversal<Vertex,Vertex> |
users()
Finds all users.
|
CredentialTraversal<Vertex,Vertex> |
users(String username,
String... more)
Finds users by name.
|
CredentialTraversal<Vertex,Vertex> |
V(Object... vertexIds)
Spawns a
GraphTraversal starting with all vertices or some subset of vertices as specified by their
unique identifier. |
CredentialTraversalSource |
with(String key)
Provides a configuration to a traversal in the form of a key which is the same as
with(key, true) . |
CredentialTraversalSource |
with(String key,
Object value)
Provides a configuration to a traversal in the form of a key value pair.
|
CredentialTraversalSource |
withBulk(boolean useBulk) |
CredentialTraversalSource |
withComputer()
Add the standard
GraphComputer of the graph that will be used to execute the traversal. |
CredentialTraversalSource |
withComputer(Class<? extends GraphComputer> graphComputerClass)
Add a
GraphComputer class used to execute the traversal. |
CredentialTraversalSource |
withComputer(Computer computer)
Add a
Computer that will generate a GraphComputer from the Graph that will be used to execute the traversal. |
CredentialTraversalSource |
withoutStrategies(Class<? extends TraversalStrategy>... traversalStrategyClasses)
Remove an arbitrary collection of
TraversalStrategy classes from the traversal source. |
CredentialTraversalSource |
withPath() |
<A> CredentialTraversalSource |
withSack(A initialValue)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(A initialValue,
BinaryOperator<A> mergeOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(A initialValue,
UnaryOperator<A> splitOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(A initialValue,
UnaryOperator<A> splitOperator,
BinaryOperator<A> mergeOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(Supplier<A> initialValue)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(Supplier<A> initialValue,
BinaryOperator<A> mergeOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(Supplier<A> initialValue,
UnaryOperator<A> splitOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSack(Supplier<A> initialValue,
UnaryOperator<A> splitOperator,
BinaryOperator<A> mergeOperator)
Add a sack to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSideEffect(String key,
A initialValue)
Add a sideEffect to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSideEffect(String key,
A initialValue,
BinaryOperator<A> reducer)
Add a sideEffect to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSideEffect(String key,
Supplier<A> initialValue)
Add a sideEffect to be used throughout the life of a spawned
Traversal . |
<A> CredentialTraversalSource |
withSideEffect(String key,
Supplier<A> initialValue,
BinaryOperator<A> reducer)
Add a sideEffect to be used throughout the life of a spawned
Traversal . |
CredentialTraversalSource |
withStrategies(TraversalStrategy... traversalStrategies)
Add an arbitrary collection of
TraversalStrategy instances to the traversal source. |
close, getBytecode, getGraph, getStrategies, io, toString, tx
public CredentialTraversalSource(Graph graph)
public CredentialTraversalSource(Graph graph, TraversalStrategies strategies)
public CredentialTraversalSource(RemoteConnection connection)
public CredentialTraversalSource clone()
TraversalSource
Bytecode
, TraversalStrategies
, mutate the cloned strategies accordingly,
and then return the cloned traversal source leaving the original unaltered.clone
in interface TraversalSource
clone
in class GraphTraversalSource
public CredentialTraversalSource with(String key)
GraphTraversalSource
with(key, true)
. The
key of the configuration must be graph provider specific and therefore a configuration could be supplied that
is not known to be valid until execution.with
in interface TraversalSource
with
in class GraphTraversalSource
key
- the key of the configuration to apply to a traversalpublic CredentialTraversalSource with(String key, Object value)
GraphTraversalSource
OptionsStrategy
manually and then add with
TraversalSource.withStrategies(TraversalStrategy[])
.with
in interface TraversalSource
with
in class GraphTraversalSource
key
- the key of the configuration to apply to a traversalvalue
- the value of the configuration to apply to a traversalpublic CredentialTraversalSource withStrategies(TraversalStrategy... traversalStrategies)
GraphTraversalSource
TraversalStrategy
instances to the traversal source.withStrategies
in interface TraversalSource
withStrategies
in class GraphTraversalSource
traversalStrategies
- a collection of traversal strategies to addpublic CredentialTraversalSource withoutStrategies(Class<? extends TraversalStrategy>... traversalStrategyClasses)
GraphTraversalSource
TraversalStrategy
classes from the traversal source.withoutStrategies
in interface TraversalSource
withoutStrategies
in class GraphTraversalSource
traversalStrategyClasses
- a collection of traversal strategy classes to removepublic CredentialTraversalSource withComputer(Computer computer)
GraphTraversalSource
Computer
that will generate a GraphComputer
from the Graph
that will be used to execute the traversal.
This adds a VertexProgramStrategy
to the strategies.withComputer
in interface TraversalSource
withComputer
in class GraphTraversalSource
computer
- a builder to generate a graph computer from the graphpublic CredentialTraversalSource withComputer(Class<? extends GraphComputer> graphComputerClass)
GraphTraversalSource
GraphComputer
class used to execute the traversal.
This adds a VertexProgramStrategy
to the strategies.withComputer
in interface TraversalSource
withComputer
in class GraphTraversalSource
graphComputerClass
- the graph computer classpublic CredentialTraversalSource withComputer()
GraphTraversalSource
GraphComputer
of the graph that will be used to execute the traversal.
This adds a VertexProgramStrategy
to the strategies.withComputer
in interface TraversalSource
withComputer
in class GraphTraversalSource
public <A> CredentialTraversalSource withSideEffect(String key, Supplier<A> initialValue, BinaryOperator<A> reducer)
GraphTraversalSource
Traversal
.
This adds a SideEffectStrategy
to the strategies.withSideEffect
in interface TraversalSource
withSideEffect
in class GraphTraversalSource
key
- the key of the sideEffectinitialValue
- a supplier that produces the initial value of the sideEffectreducer
- a reducer to merge sideEffect mutations into a single resultpublic <A> CredentialTraversalSource withSideEffect(String key, A initialValue, BinaryOperator<A> reducer)
GraphTraversalSource
Traversal
.
This adds a SideEffectStrategy
to the strategies.withSideEffect
in interface TraversalSource
withSideEffect
in class GraphTraversalSource
key
- the key of the sideEffectinitialValue
- the initial value of the sideEffectreducer
- a reducer to merge sideEffect mutations into a single resultpublic <A> CredentialTraversalSource withSideEffect(String key, A initialValue)
GraphTraversalSource
Traversal
.
This adds a SideEffectStrategy
to the strategies.withSideEffect
in interface TraversalSource
withSideEffect
in class GraphTraversalSource
key
- the key of the sideEffectinitialValue
- the initial value of the sideEffectpublic <A> CredentialTraversalSource withSideEffect(String key, Supplier<A> initialValue)
GraphTraversalSource
Traversal
.
This adds a SideEffectStrategy
to the strategies.withSideEffect
in interface TraversalSource
withSideEffect
in class GraphTraversalSource
key
- the key of the sideEffectinitialValue
- a supplier that produces the initial value of the sideEffectpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- a supplier that produces the initial value of the sideEffectsplitOperator
- the sack split operatormergeOperator
- the sack merge operatorpublic <A> CredentialTraversalSource withSack(A initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- the initial value of the sideEffectsplitOperator
- the sack split operatormergeOperator
- the sack merge operatorpublic <A> CredentialTraversalSource withSack(A initialValue)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- the initial value of the sideEffectpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- a supplier that produces the initial value of the sideEffectpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- a supplier that produces the initial value of the sideEffectsplitOperator
- the sack split operatorpublic <A> CredentialTraversalSource withSack(A initialValue, UnaryOperator<A> splitOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- the initial value of the sideEffectsplitOperator
- the sack split operatorpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue, BinaryOperator<A> mergeOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- a supplier that produces the initial value of the sideEffectmergeOperator
- the sack merge operatorpublic <A> CredentialTraversalSource withSack(A initialValue, BinaryOperator<A> mergeOperator)
GraphTraversalSource
Traversal
.
This adds a SackStrategy
to the strategies.withSack
in interface TraversalSource
withSack
in class GraphTraversalSource
initialValue
- the initial value of the sideEffectmergeOperator
- the sack merge operatorpublic CredentialTraversalSource withBulk(boolean useBulk)
withBulk
in class GraphTraversalSource
public CredentialTraversalSource withPath()
withPath
in class GraphTraversalSource
public CredentialTraversal<Vertex,Vertex> users()
CredentialTraversalSourceDsl
users
in class CredentialTraversalSourceDsl
public CredentialTraversal<Vertex,Vertex> users(String username, String... more)
CredentialTraversalSourceDsl
users
in class CredentialTraversalSourceDsl
public CredentialTraversal<Vertex,Vertex> user(String username, String password)
CredentialTraversalSourceDsl
user
in class CredentialTraversalSourceDsl
public CredentialTraversal<Vertex,Vertex> addV()
GraphTraversalSource
GraphTraversal
by adding a vertex with the default label.addV
in class GraphTraversalSource
public CredentialTraversal<Vertex,Vertex> addV(String label)
GraphTraversalSource
GraphTraversal
by adding a vertex with the specified label. If the label
is
null
then it will default to Vertex.DEFAULT_LABEL
.addV
in class GraphTraversalSource
public CredentialTraversal<Vertex,Vertex> addV(Traversal vertexLabelTraversal)
GraphTraversalSource
GraphTraversal
by adding a vertex with the label as determined by a Traversal
. If the
vertexLabelTraversal
is null
then it will default to Vertex.DEFAULT_LABEL
.addV
in class GraphTraversalSource
public CredentialTraversal<Edge,Edge> addE(String label)
GraphTraversalSource
GraphTraversal
by adding a edge with the specified label.addE
in class GraphTraversalSource
public CredentialTraversal<Edge,Edge> addE(Traversal edgeLabelTraversal)
GraphTraversalSource
GraphTraversal
by adding a edge with a label as specified by the provided Traversal
.addE
in class GraphTraversalSource
public CredentialTraversal<Vertex,Vertex> V(Object... vertexIds)
GraphTraversalSource
GraphTraversal
starting with all vertices or some subset of vertices as specified by their
unique identifier.V
in class GraphTraversalSource
public CredentialTraversal<Edge,Edge> E(Object... edgeIds)
GraphTraversalSource
GraphTraversal
starting with all edges or some subset of edges as specified by their unique
identifier.E
in class GraphTraversalSource
public <S> CredentialTraversal<S,S> inject(S... starts)
GraphTraversalSource
GraphTraversal
starting it with arbitrary values.inject
in class GraphTraversalSource
public Optional<Class<?>> getAnonymousTraversalClass()
getAnonymousTraversalClass
in interface TraversalSource
getAnonymousTraversalClass
in class GraphTraversalSource
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.