public class CredentialTraversalSource extends CredentialTraversalSourceDsl
GraphTraversalSource.Symbolsbytecode, 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, txpublic CredentialTraversalSource(Graph graph)
public CredentialTraversalSource(Graph graph, TraversalStrategies strategies)
public CredentialTraversalSource(RemoteConnection connection)
public CredentialTraversalSource clone()
TraversalSourceBytecode, TraversalStrategies, mutate the cloned strategies accordingly,
and then return the cloned traversal source leaving the original unaltered.clone in interface TraversalSourceclone in class GraphTraversalSourcepublic CredentialTraversalSource with(String key)
GraphTraversalSourcewith(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 TraversalSourcewith in class GraphTraversalSourcekey - the key of the configuration to apply to a traversalpublic CredentialTraversalSource with(String key, Object value)
GraphTraversalSourceOptionsStrategy manually and then add with
TraversalSource.withStrategies(TraversalStrategy[]).with in interface TraversalSourcewith in class GraphTraversalSourcekey - the key of the configuration to apply to a traversalvalue - the value of the configuration to apply to a traversalpublic CredentialTraversalSource withStrategies(TraversalStrategy... traversalStrategies)
GraphTraversalSourceTraversalStrategy instances to the traversal source.withStrategies in interface TraversalSourcewithStrategies in class GraphTraversalSourcetraversalStrategies - a collection of traversal strategies to addpublic CredentialTraversalSource withoutStrategies(Class<? extends TraversalStrategy>... traversalStrategyClasses)
GraphTraversalSourceTraversalStrategy classes from the traversal source.withoutStrategies in interface TraversalSourcewithoutStrategies in class GraphTraversalSourcetraversalStrategyClasses - a collection of traversal strategy classes to removepublic CredentialTraversalSource withComputer(Computer computer)
GraphTraversalSourceComputer 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 TraversalSourcewithComputer in class GraphTraversalSourcecomputer - a builder to generate a graph computer from the graphpublic CredentialTraversalSource withComputer(Class<? extends GraphComputer> graphComputerClass)
GraphTraversalSourceGraphComputer class used to execute the traversal.
This adds a VertexProgramStrategy to the strategies.withComputer in interface TraversalSourcewithComputer in class GraphTraversalSourcegraphComputerClass - the graph computer classpublic CredentialTraversalSource withComputer()
GraphTraversalSourceGraphComputer of the graph that will be used to execute the traversal.
This adds a VertexProgramStrategy to the strategies.withComputer in interface TraversalSourcewithComputer in class GraphTraversalSourcepublic <A> CredentialTraversalSource withSideEffect(String key, Supplier<A> initialValue, BinaryOperator<A> reducer)
GraphTraversalSourceTraversal.
This adds a SideEffectStrategy to the strategies.withSideEffect in interface TraversalSourcewithSideEffect in class GraphTraversalSourcekey - 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)
GraphTraversalSourceTraversal.
This adds a SideEffectStrategy to the strategies.withSideEffect in interface TraversalSourcewithSideEffect in class GraphTraversalSourcekey - 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)
GraphTraversalSourceTraversal.
This adds a SideEffectStrategy to the strategies.withSideEffect in interface TraversalSourcewithSideEffect in class GraphTraversalSourcekey - the key of the sideEffectinitialValue - the initial value of the sideEffectpublic <A> CredentialTraversalSource withSideEffect(String key, Supplier<A> initialValue)
GraphTraversalSourceTraversal.
This adds a SideEffectStrategy to the strategies.withSideEffect in interface TraversalSourcewithSideEffect in class GraphTraversalSourcekey - 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)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - 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)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - the initial value of the sideEffectsplitOperator - the sack split operatormergeOperator - the sack merge operatorpublic <A> CredentialTraversalSource withSack(A initialValue)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - the initial value of the sideEffectpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - a supplier that produces the initial value of the sideEffectpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - a supplier that produces the initial value of the sideEffectsplitOperator - the sack split operatorpublic <A> CredentialTraversalSource withSack(A initialValue, UnaryOperator<A> splitOperator)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - the initial value of the sideEffectsplitOperator - the sack split operatorpublic <A> CredentialTraversalSource withSack(Supplier<A> initialValue, BinaryOperator<A> mergeOperator)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - a supplier that produces the initial value of the sideEffectmergeOperator - the sack merge operatorpublic <A> CredentialTraversalSource withSack(A initialValue, BinaryOperator<A> mergeOperator)
GraphTraversalSourceTraversal.
This adds a SackStrategy to the strategies.withSack in interface TraversalSourcewithSack in class GraphTraversalSourceinitialValue - the initial value of the sideEffectmergeOperator - the sack merge operatorpublic CredentialTraversalSource withBulk(boolean useBulk)
withBulk in class GraphTraversalSourcepublic CredentialTraversalSource withPath()
withPath in class GraphTraversalSourcepublic CredentialTraversal<Vertex,Vertex> users()
CredentialTraversalSourceDslusers in class CredentialTraversalSourceDslpublic CredentialTraversal<Vertex,Vertex> users(String username, String... more)
CredentialTraversalSourceDslusers in class CredentialTraversalSourceDslpublic CredentialTraversal<Vertex,Vertex> user(String username, String password)
CredentialTraversalSourceDsluser in class CredentialTraversalSourceDslpublic CredentialTraversal<Vertex,Vertex> addV()
GraphTraversalSourceGraphTraversal by adding a vertex with the default label.addV in class GraphTraversalSourcepublic CredentialTraversal<Vertex,Vertex> addV(String label)
GraphTraversalSourceGraphTraversal by adding a vertex with the specified label. If the label is
null then it will default to Vertex.DEFAULT_LABEL.addV in class GraphTraversalSourcepublic CredentialTraversal<Vertex,Vertex> addV(Traversal vertexLabelTraversal)
GraphTraversalSourceGraphTraversal 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 GraphTraversalSourcepublic CredentialTraversal<Edge,Edge> addE(String label)
GraphTraversalSourceGraphTraversal by adding a edge with the specified label.addE in class GraphTraversalSourcepublic CredentialTraversal<Edge,Edge> addE(Traversal edgeLabelTraversal)
GraphTraversalSourceGraphTraversal by adding a edge with a label as specified by the provided Traversal.addE in class GraphTraversalSourcepublic CredentialTraversal<Vertex,Vertex> V(Object... vertexIds)
GraphTraversalSourceGraphTraversal starting with all vertices or some subset of vertices as specified by their
unique identifier.V in class GraphTraversalSourcepublic CredentialTraversal<Edge,Edge> E(Object... edgeIds)
GraphTraversalSourceGraphTraversal starting with all edges or some subset of edges as specified by their unique
identifier.E in class GraphTraversalSourcepublic <S> CredentialTraversal<S,S> inject(S... starts)
GraphTraversalSourceGraphTraversal starting it with arbitrary values.inject in class GraphTraversalSourcepublic Optional<Class<?>> getAnonymousTraversalClass()
getAnonymousTraversalClass in interface TraversalSourcegetAnonymousTraversalClass in class GraphTraversalSourceCopyright © 2013–2022 Apache Software Foundation. All rights reserved.