Class CredentialTraversalSource
java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential.CredentialTraversalSourceDsl
org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential.CredentialTraversalSource
- All Implemented Interfaces:
AutoCloseable,Cloneable,TraversalSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
GraphTraversalSource.Symbols -
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
connection, graph, gremlinLang, strategies -
Constructor Summary
ConstructorsConstructorDescriptionCredentialTraversalSource(RemoteConnection connection) CredentialTraversalSource(Graph graph) CredentialTraversalSource(Graph graph, TraversalStrategies strategies) -
Method Summary
Modifier and TypeMethodDescriptionSpawns aGraphTraversalby adding an edge with the specified label.Spawns aGraphTraversalby adding a edge with a label as specified by the providedTraversal.addV()Spawns aGraphTraversalby adding a vertex with the default label.Spawns aGraphTraversalby adding a vertex with one or more labels.clone()The clone-method should be used to create immutable traversal sources with each call to a configuration "withXXX"-method.Spawns aGraphTraversalstarting with all edges or some subset of edges as specified by their unique identifier.<S> CredentialTraversal<S,S> inject(S... starts) Spawns aGraphTraversalstarting it with arbitrary values.Creates or updates a user.users()Finds all users.Finds users by name.Spawns aGraphTraversalstarting with all vertices or some subset of vertices as specified by their unique identifier.Provides a configuration to a traversal in the form of a key which is the same aswith(key, true).Provides a configuration to a traversal in the form of a key value pair.withBulk(boolean useBulk) Add the standardGraphComputerof the graph that will be used to execute the traversal.withComputer(Class<? extends GraphComputer> graphComputerClass) Add aGraphComputerclass used to execute the traversal.withComputer(Computer computer) Add aComputerthat will generate aGraphComputerfrom theGraphthat will be used to execute the traversal.withoutStrategies(Class<? extends TraversalStrategy>... traversalStrategyClasses) Remove an arbitrary collection ofTraversalStrategyclasses from the traversal source.withPath()withSack(A initialValue) Add a sack to be used throughout the life of a spawnedTraversal.withSack(A initialValue, BinaryOperator<A> mergeOperator) Add a sack to be used throughout the life of a spawnedTraversal.withSack(A initialValue, UnaryOperator<A> splitOperator) Add a sack to be used throughout the life of a spawnedTraversal.withSack(A initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator) Add a sack to be used throughout the life of a spawnedTraversal.Add a sack to be used throughout the life of a spawnedTraversal.withSack(Supplier<A> initialValue, BinaryOperator<A> mergeOperator) Add a sack to be used throughout the life of a spawnedTraversal.withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator) Add a sack to be used throughout the life of a spawnedTraversal.withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator) Add a sack to be used throughout the life of a spawnedTraversal.withSideEffect(String key, A initialValue) Add a sideEffect to be used throughout the life of a spawnedTraversal.withSideEffect(String key, A initialValue, BinaryOperator<A> reducer) Add a sideEffect to be used throughout the life of a spawnedTraversal.withSideEffect(String key, Supplier<A> initialValue) Add a sideEffect to be used throughout the life of a spawnedTraversal.withSideEffect(String key, Supplier<A> initialValue, BinaryOperator<A> reducer) Add a sideEffect to be used throughout the life of a spawnedTraversal.withStrategies(TraversalStrategy... traversalStrategies) Add an arbitrary collection ofTraversalStrategyinstances to the traversal source.Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource
addE, addV, call, call, call, call, call, call, call, close, E, evaluateInTx, executeInTx, getGraph, getGremlinLang, getStrategies, io, match, match, mergeE, mergeE, mergeE, mergeV, mergeV, mergeV, toString, tx, union, V
-
Constructor Details
-
CredentialTraversalSource
-
CredentialTraversalSource
-
CredentialTraversalSource
-
-
Method Details
-
clone
Description copied from interface:TraversalSourceThe clone-method should be used to create immutable traversal sources with each call to a configuration "withXXX"-method. The clone-method should clone theGremlinLang,TraversalStrategies, mutate the cloned strategies accordingly, and then return the cloned traversal source leaving the original unaltered.- Specified by:
clonein interfaceTraversalSource- Overrides:
clonein classGraphTraversalSource- Returns:
- the cloned traversal source
-
with
Description copied from class:GraphTraversalSourceProvides a configuration to a traversal in the form of a key which is the same aswith(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.- Specified by:
within interfaceTraversalSource- Overrides:
within classGraphTraversalSource- Parameters:
key- the key of the configuration to apply to a traversal- Returns:
- a new traversal source with the included configuration
-
with
Description copied from class:GraphTraversalSourceProvides a configuration to a traversal in the form of a key value pair. 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. This is a handy shortcut for building anOptionsStrategymanually and then add withTraversalSource.withStrategies(TraversalStrategy[]).- Specified by:
within interfaceTraversalSource- Overrides:
within classGraphTraversalSource- Parameters:
key- the key of the configuration to apply to a traversalvalue- the value of the configuration to apply to a traversal- Returns:
- a new traversal source with the included configuration
-
withStrategies
Description copied from class:GraphTraversalSourceAdd an arbitrary collection ofTraversalStrategyinstances to the traversal source.- Specified by:
withStrategiesin interfaceTraversalSource- Overrides:
withStrategiesin classGraphTraversalSource- Parameters:
traversalStrategies- a collection of traversal strategies to add- Returns:
- a new traversal source with updated strategies
-
withoutStrategies
public CredentialTraversalSource withoutStrategies(Class<? extends TraversalStrategy>... traversalStrategyClasses) Description copied from class:GraphTraversalSourceRemove an arbitrary collection ofTraversalStrategyclasses from the traversal source.- Specified by:
withoutStrategiesin interfaceTraversalSource- Overrides:
withoutStrategiesin classGraphTraversalSource- Parameters:
traversalStrategyClasses- a collection of traversal strategy classes to remove- Returns:
- a new traversal source with updated strategies
-
withComputer
Description copied from class:GraphTraversalSourceAdd aComputerthat will generate aGraphComputerfrom theGraphthat will be used to execute the traversal. This adds aVertexProgramStrategyto the strategies.- Specified by:
withComputerin interfaceTraversalSource- Overrides:
withComputerin classGraphTraversalSource- Parameters:
computer- a builder to generate a graph computer from the graph- Returns:
- a new traversal source with updated strategies
-
withComputer
Description copied from class:GraphTraversalSourceAdd aGraphComputerclass used to execute the traversal. This adds aVertexProgramStrategyto the strategies.- Specified by:
withComputerin interfaceTraversalSource- Overrides:
withComputerin classGraphTraversalSource- Parameters:
graphComputerClass- the graph computer class- Returns:
- a new traversal source with updated strategies
-
withComputer
Description copied from class:GraphTraversalSourceAdd the standardGraphComputerof the graph that will be used to execute the traversal. This adds aVertexProgramStrategyto the strategies.- Specified by:
withComputerin interfaceTraversalSource- Overrides:
withComputerin classGraphTraversalSource- Returns:
- a new traversal source with updated strategies
-
withSideEffect
public <A> CredentialTraversalSource withSideEffect(String key, Supplier<A> initialValue, BinaryOperator<A> reducer) Description copied from class:GraphTraversalSourceAdd a sideEffect to be used throughout the life of a spawnedTraversal. This adds aSideEffectStrategyto the strategies.- Specified by:
withSideEffectin interfaceTraversalSource- Overrides:
withSideEffectin classGraphTraversalSource- Parameters:
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 result- Returns:
- a new traversal source with updated strategies
-
withSideEffect
public <A> CredentialTraversalSource withSideEffect(String key, A initialValue, BinaryOperator<A> reducer) Description copied from class:GraphTraversalSourceAdd a sideEffect to be used throughout the life of a spawnedTraversal. This adds aSideEffectStrategyto the strategies.- Specified by:
withSideEffectin interfaceTraversalSource- Overrides:
withSideEffectin classGraphTraversalSource- Parameters:
key- the key of the sideEffectinitialValue- the initial value of the sideEffectreducer- a reducer to merge sideEffect mutations into a single result- Returns:
- a new traversal source with updated strategies
-
withSideEffect
Description copied from class:GraphTraversalSourceAdd a sideEffect to be used throughout the life of a spawnedTraversal. This adds aSideEffectStrategyto the strategies.- Specified by:
withSideEffectin interfaceTraversalSource- Overrides:
withSideEffectin classGraphTraversalSource- Parameters:
key- the key of the sideEffectinitialValue- the initial value of the sideEffect- Returns:
- a new traversal source with updated strategies
-
withSideEffect
Description copied from class:GraphTraversalSourceAdd a sideEffect to be used throughout the life of a spawnedTraversal. This adds aSideEffectStrategyto the strategies.- Specified by:
withSideEffectin interfaceTraversalSource- Overrides:
withSideEffectin classGraphTraversalSource- Parameters:
key- the key of the sideEffectinitialValue- a supplier that produces the initial value of the sideEffect- Returns:
- a new traversal source with updated strategies
-
withSack
public <A> CredentialTraversalSource withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator) Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- a supplier that produces the initial value of the sideEffectsplitOperator- the sack split operatormergeOperator- the sack merge operator- Returns:
- a new traversal source with updated strategies
-
withSack
public <A> CredentialTraversalSource withSack(A initialValue, UnaryOperator<A> splitOperator, BinaryOperator<A> mergeOperator) Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- the initial value of the sideEffectsplitOperator- the sack split operatormergeOperator- the sack merge operator- Returns:
- a new traversal source with updated strategies
-
withSack
Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- the initial value of the sideEffect- Returns:
- a new traversal source with updated strategies
-
withSack
Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- a supplier that produces the initial value of the sideEffect- Returns:
- a new traversal source with updated strategies
-
withSack
public <A> CredentialTraversalSource withSack(Supplier<A> initialValue, UnaryOperator<A> splitOperator) Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- a supplier that produces the initial value of the sideEffectsplitOperator- the sack split operator- Returns:
- a new traversal source with updated strategies
-
withSack
Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- the initial value of the sideEffectsplitOperator- the sack split operator- Returns:
- a new traversal source with updated strategies
-
withSack
public <A> CredentialTraversalSource withSack(Supplier<A> initialValue, BinaryOperator<A> mergeOperator) Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- a supplier that produces the initial value of the sideEffectmergeOperator- the sack merge operator- Returns:
- a new traversal source with updated strategies
-
withSack
Description copied from class:GraphTraversalSourceAdd a sack to be used throughout the life of a spawnedTraversal. This adds aSackStrategyto the strategies.- Specified by:
withSackin interfaceTraversalSource- Overrides:
withSackin classGraphTraversalSource- Parameters:
initialValue- the initial value of the sideEffectmergeOperator- the sack merge operator- Returns:
- a new traversal source with updated strategies
-
withBulk
- Overrides:
withBulkin classGraphTraversalSource
-
withPath
- Overrides:
withPathin classGraphTraversalSource
-
users
Description copied from class:CredentialTraversalSourceDslFinds all users.- Overrides:
usersin classCredentialTraversalSourceDsl
-
users
Description copied from class:CredentialTraversalSourceDslFinds users by name.- Overrides:
usersin classCredentialTraversalSourceDsl
-
user
Description copied from class:CredentialTraversalSourceDslCreates or updates a user.- Overrides:
userin classCredentialTraversalSourceDsl
-
addV
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalby adding a vertex with the default label.- Overrides:
addVin classGraphTraversalSource
-
addV
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalby adding a vertex with one or more labels.- Overrides:
addVin classGraphTraversalSource- Parameters:
label- the first (or only) vertex labeladditionalLabels- additional labels (may be empty for single-label)- Returns:
- the traversal with the vertex added
-
addV
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalby adding aVertexwith one or more labels each determined by aTraversal. Each traversal is iterated for a single result only. If exactly oneTraversalis provided, and it produces aCollection<String>, the collection will be automatically unfolded.- Overrides:
addVin classGraphTraversalSource- Parameters:
label- the first (or only) label traversaladditionalLabels- additional label traversals (may be empty for single-traversal behavior)
-
addE
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalby adding an edge with the specified label.- Overrides:
addEin classGraphTraversalSource
-
addE
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalby adding a edge with a label as specified by the providedTraversal.- Overrides:
addEin classGraphTraversalSource
-
V
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalstarting with all vertices or some subset of vertices as specified by their unique identifier.- Overrides:
Vin classGraphTraversalSource
-
E
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalstarting with all edges or some subset of edges as specified by their unique identifier.- Overrides:
Ein classGraphTraversalSource
-
inject
Description copied from class:GraphTraversalSourceSpawns aGraphTraversalstarting it with arbitrary values.- Overrides:
injectin classGraphTraversalSource
-
getAnonymousTraversalClass
- Specified by:
getAnonymousTraversalClassin interfaceTraversalSource- Overrides:
getAnonymousTraversalClassin classGraphTraversalSource
-