Interface CredentialTraversal<S,E>
- All Superinterfaces:
AutoCloseable,Cloneable,CredentialTraversalDsl<S,,E> GraphTraversal<S,,E> GraphTraversal.Admin<S,,E> Iterator<E>,Serializable,Traversal<S,,E> Traversal.Admin<S,E>
- All Known Implementing Classes:
DefaultCredentialTraversal
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
GraphTraversal.Admin<S,E>, GraphTraversal.Symbols Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
Traversal.Admin<S,E>, Traversal.Exceptions, Traversal.Symbols -
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.groovy.jsr223.dsl.credential.CredentialTraversalDsl
BCRYPT_ROUNDS -
Method Summary
Modifier and TypeMethodDescriptiondefault CredentialTraversal<S,Edge> Adds anEdgewith the specified edge label.default CredentialTraversal<S,Edge> Adds anEdgewith the specified edge label.default CredentialTraversal<S,Edge> default CredentialTraversal<S,E> Adds labels to the current element.default CredentialTraversal<S,E> Adds labels to the current element.default CredentialTraversal<S,Vertex> addV()Adds aVertexwith a default vertex label.default CredentialTraversal<S,Vertex> Adds aVertex.default CredentialTraversal<S,Vertex> Adds aVertex.default CredentialTraversal<S,Vertex> default CredentialTraversal<S,E> Eagerly collects objects up to this step into a side-effect.default <S2> CredentialTraversal<S,E> FiltersElists given the providedpredicate.default CredentialTraversal<S,E> Ensures that all of the provided traversals yield a result.default <S2> CredentialTraversal<S,E> FiltersElists given the providedpredicate.default CredentialTraversal<S,E> A step modulator that provides a label to the step that can be accessed later in the traversal by other steps.default CredentialTraversal<S,Boolean> asBool()Parse the incoming traverser as a boolean value.default CredentialTraversal<S,OffsetDateTime> asDate()Parse value of the incoming traverser as an ISO-8601OffsetDateTime.default CredentialTraversal<S,Number> asNumber()Parse value of the incoming traverser as aNumber.default CredentialTraversal<S,Number> Parse value of the incoming traverser as aNumber.default CredentialTraversal<S,String> asString()Returns the value of incoming traverser as strings.default <E2> CredentialTraversal<S,E2> Returns the value of incoming traverser as strings.default CredentialTraversal<S,E> barrier()Turns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier.default CredentialTraversal<S,E> barrier(int maxBarrierSize) Turns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier.default CredentialTraversal<S,E> barrier(Consumer<TraverserSet<Object>> barrierConsumer) Turns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier.default CredentialTraversal<S,Vertex> both()Map theVertexto its adjacent vertices.default CredentialTraversal<S,Vertex> Map theVertexto its adjacent vertices given the edge labels.default CredentialTraversal<S,Vertex> Map theVertexto its adjacent vertices given the edge labels.default CredentialTraversal<S,Edge> bothE()Map theVertexto its incident edges.default CredentialTraversal<S,Edge> Map theVertexto its incident edges given the edge labels.default CredentialTraversal<S,Edge> Map theVertexto its incident edges given the edge labels.default CredentialTraversal<S,Vertex> bothV()Map theEdgeto its incident vertices.default <M,E2> CredentialTraversal<S, E2> Split theTraverserto all the specified functions.default <M,E2> CredentialTraversal<S, E2> Split theTraverserto all the specified traversals.default CredentialTraversal<S,E> by()Theby()can be applied to a number of different step to alter their behaviors.default CredentialTraversal<S,E> Theby()can be applied to a number of different step to alter their behaviors.default <V> CredentialTraversal<S,E> by(String key, Comparator<V> comparator) Theby()can be applied to a number of different step to alter their behaviors.default CredentialTraversal<S,E> by(Comparator<E> comparator) Theby()can be applied to a number of different step to alter their behaviors.default <U> CredentialTraversal<S,E> by(Function<U, Object> function, Comparator comparator) Theby()can be applied to a number of different step to alter their behaviors.default <V> CredentialTraversal<S,E> Theby()can be applied to a number of different step to alter their behaviors.default CredentialTraversal<S,E> Theby()can be applied to a number of different step to alter their behaviors.default CredentialTraversal<S,E> Theby()can be applied to a number of different step to alter their behaviors.default <V> CredentialTraversal<S,E> by(Traversal<?, ?> traversal, Comparator<V> comparator) Theby()can be applied to a number of different step to alter their behaviors.default CredentialTraversal<S,E> Theby()can be applied to a number of different step to alter their behaviors.default <E> CredentialTraversal<S,E> Perform the specified service call with no parameters.default <E> CredentialTraversal<S,E> Perform the specified service call with the specified static parameters.default <E> CredentialTraversal<S,E> Perform the specified service call with both static and dynamic parameters produced by the specified child traversal.default <E> CredentialTraversal<S,E> Perform the specified service call with the specified static parameters.default <E> CredentialTraversal<S,E> Perform the specified service call with both static and dynamic parameters produced by the specified child traversal.default <E> CredentialTraversal<S,E> Perform the specified service call with dynamic parameters produced by the specified child traversal.default <E2> CredentialTraversal<S,E2> Iterates the traversal up to the itself and emits the side-effect referenced by the key.default <M,E2> CredentialTraversal<S, E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <M,E2> CredentialTraversal<S, E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Routes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.default <E2> CredentialTraversal<S,E2> Evaluates the provided traversals and returns the result of the first traversal to emit at least one object.default CredentialTraversal<S,E> coin(double probability) Filter theEobject given a biased coin toss.default CredentialTraversal<S,E> Filter theEobject given a biased coin toss.default CredentialTraversal<S,List<?>> Combines the list traverser and list argument.default CredentialTraversal<S,String> Concatenate an arbitrary number of strings to the incoming traverser.default CredentialTraversal<S,String> Concatenate values of an arbitrary number of string traversals to the incoming traverser.default CredentialTraversal<S,String> Joins together the elements of the incoming list traverser together with the provided delimiter.default CredentialTraversal<S,E> Executes a Connected Component algorithm over the graph.default <E2> CredentialTraversal<S,E2> constant(E2 e) Map any object to a fixedEvalue.default <E2> CredentialTraversal<S,E2> Map any object to a fixedEvalue.default CredentialTraversal<S,Long> count()Map the traversal stream to its reduction as a sum of theTraverser.bulk()values (i.e.default CredentialTraversal<S,Long> Map the traversal stream to its reduction as a sum of theTraverser.bulk()values given the specifiedScope(i.e.default CredentialTraversal<S,E> default CredentialTraversal<S,OffsetDateTime> Increase value of inputOffsetDateTime.default CredentialTraversal<S,Long> dateDiff(OffsetDateTime value) Returns the difference between twoOffsetDateTimein epoch time.default CredentialTraversal<S,Long> Returns the difference between twoOffsetDateTimein epoch time.default CredentialTraversal<S,Long> Returns the difference between two dates in epoch time.default CredentialTraversal<S,E> Remove all duplicates in the traversal stream up to this point.default CredentialTraversal<S,E> Remove all duplicates in the traversal stream up to this point.default CredentialTraversal<S,Set<?>> difference(Object values) Calculates the difference between the list traverser and list argument.default CredentialTraversal<S,E> discard()Filter all traversers in the traversal.default CredentialTraversal<S,Set<?>> Calculates the disjunction between the list traverser and list argument.default CredentialTraversal<S,E> drop()Removes elements and properties from the graph.default CredentialTraversal<S,E> Removes labels from the current element.default CredentialTraversal<S,E> Removes labels from the current element.default CredentialTraversal<S,E> Removes all labels from the current element, triggering the provider's default label behavior.default CredentialTraversal<S,Edge> AEstep is usually used to start a traversal but it may also be used mid-traversal.default CredentialTraversal<S,Edge> AEstep that accepts a child traversal whose results are used as edge IDs for lookup.default CredentialTraversal<S,Element> element()default <E2> CredentialTraversal<S,Map<Object, E2>> elementMap(String... propertyKeys) default CredentialTraversal<S,E> emit()Emit is used in conjunction withGraphTraversal.repeat(Traversal)to emit all objects from the loop.default CredentialTraversal<S,E> Emit is used in conjunction withGraphTraversal.repeat(Traversal)to determine what objects get emit from the loop.default CredentialTraversal<S,E> Emit is used in conjunction withGraphTraversal.repeat(Traversal)to determine what objects get emit from the loop.default CredentialTraversal<S,E> fail()When triggered, immediately throws aRuntimeExceptionwhich implements theFailureinterface.default CredentialTraversal<S,E> When triggered, immediately throws aRuntimeExceptionwhich implements theFailureinterface.default CredentialTraversal<S,E> Map theTraverserto eithertrueorfalse, wherefalsewill not pass the traverser to the next step.default CredentialTraversal<S,E> Map theTraverserto eithertrueorfalse, wherefalsewill not pass the traverser to the next step.default <E2> CredentialTraversal<S,E2> default <E2> CredentialTraversal<S,E2> default CredentialTraversal<S,List<E>> fold()Rolls up objects in the stream into an aggregate list.default <E2> CredentialTraversal<S,E2> fold(E2 seed, BiFunction<E2, E, E2> foldFunction) Rolls up objects in the stream into an aggregate value as defined by aseedandBiFunction.default CredentialTraversal<S,String> A mid-traversal step which will handle result formatting to string values.default CredentialTraversal<S,E> Providefrom()-modulation to respective steps.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.default <K,V> CredentialTraversal<S, Map<K, V>> group()Organize objects in the stream into aMap.default CredentialTraversal<S,E> Organize objects in the stream into aMap.default <K> CredentialTraversal<S,Map<K, Long>> Counts the number of times a particular objects has been part of a traversal, returning aMapwhere the object is the key and the value is the count.default CredentialTraversal<S,E> groupCount(String sideEffectKey) Counts the number of times a particular objects has been part of a traversal, returning aMapwhere the object is the key and the value is the count.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on the existence of properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their label and a property value resolved from a child traversal at runtime.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties using a child traversal whose results are resolved at runtime against the current traverser.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their properties using a child traversal whose results are resolved at runtime against the current traverser.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their identifier.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their identifier.default CredentialTraversal<S,E> FiltersPropertyobjects based on their key.default CredentialTraversal<S,E> FiltersPropertyobjects based on their key.default CredentialTraversal<S,E> FiltersPropertyobjects based on their key using a child traversal whose results are resolved at runtime against the current traverser.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their label.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their label.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their label.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on their label using a child traversal whose results are resolved at runtime against the current traverser.default CredentialTraversal<S,E> Filters vertices, edges and vertex properties based on the non-existence of properties.default CredentialTraversal<S,E> FiltersPropertyobjects based on their value.default CredentialTraversal<S,E> FiltersPropertyobjects based on their value.Note that calling this step withnullis the same as callingGraphTraversal.hasValue(Object, Object...)with a singlenull.default CredentialTraversal<S,E> FiltersPropertyobjects based on their value using a child traversal whose results are resolved at runtime against the current traverser.default CredentialTraversal<S,Object> id()Map theElementto itsElement.id().default CredentialTraversal<S,E> identity()Map theEobject to itself.default CredentialTraversal<S,Vertex> in()Map theVertexto its incoming adjacent vertices.default CredentialTraversal<S,Vertex> Map theVertexto its incoming adjacent vertices given the edge labels.default CredentialTraversal<S,Vertex> Map theVertexto its incoming adjacent vertices given the edge labels.default <E2> CredentialTraversal<S,E2> index()Indexes all items of the current collection.default CredentialTraversal<S,Edge> inE()Map theVertexto its incoming incident edges.default CredentialTraversal<S,Edge> Map theVertexto its incoming incident edges given the edge labels.default CredentialTraversal<S,Edge> Map theVertexto its incoming incident edges given the edge labels.default CredentialTraversal<S,E> Provides a way to add arbitrary objects to a traversal stream.default CredentialTraversal<S,Set<?>> Calculates the intersection between the list traverser and list argument.default CredentialTraversal<S,Vertex> inV()default CredentialTraversal<S,E> Filter theEobject if it is notP.eq(V)to the provided value.default CredentialTraversal<S,E> FiltersEobject values given the providedpredicate.default CredentialTraversal<S,E> iterate()Iterate all theTraverserinstances in the traversal.default CredentialTraversal<S,String> key()Map thePropertyto itsProperty.key().default CredentialTraversal<S,String> label()Map theElementto itsElement.label().default CredentialTraversal<S,String> labels()Map theElementto its labels, emitting each label as a separate traverser.default CredentialTraversal<S,Integer> length()Returns the length incoming string traverser.default <E2> CredentialTraversal<S,E2> Returns the length incoming string or list.default CredentialTraversal<S,E> limit(long limit) Filter the objects in the traversal by the number of them to pass through the stream, where only the firstnobjects are allowed as defined by thelimitargument.default <E2> CredentialTraversal<S,E2> Filter the objects in the traversal by the number of them to pass through the stream given theScope, where only the firstnobjects are allowed as defined by thelimitargument.default <E2> CredentialTraversal<S,E2> Filter the objects in the traversal by the number of them to pass through the stream given theScope, where only the firstnobjects are allowed as defined by thelimitargument.default CredentialTraversal<S,E> Filter the objects in the traversal by the number of them to pass through the stream, where only the firstnobjects are allowed as defined by thelimitargument.default <E2> CredentialTraversal<S,E2> Provides a execute a specified traversal on a single element within a stream.default CredentialTraversal<S,Integer> loops()If theTraversersupports looping then calling this method will extract the number of loops for that traverser.default CredentialTraversal<S,Integer> If theTraversersupports looping then calling this method will extract the number of loops for that traverser for the named loop.default CredentialTraversal<S,String> lTrim()Returns a string with leading whitespace removed.default <E2> CredentialTraversal<S,E2> Returns a string with leading whitespace removed.default <E2> CredentialTraversal<S,E2> default <E2> CredentialTraversal<S,E2> default CredentialTraversal<S,Map<String, Object>> Map theTraverserto a result using a declarative query string.default CredentialTraversal<S,Map<String, Object>> Map theTraverserto a result using a declarative query string with bound parameters.default <E2> CredentialTraversal<S,Map<String, E2>> default CredentialTraversal<S,Double> default <E2 extends Comparable>
CredentialTraversal<S,E2> max()Determines the largest value in the stream.default <E2 extends Comparable>
CredentialTraversal<S,E2> Determines the largest value in the stream given theScope.default <E2 extends Number>
CredentialTraversal<S,E2> mean()Determines the mean value in the stream.default <E2 extends Number>
CredentialTraversal<S,E2> Determines the mean value in the stream given theScope.default <E2> CredentialTraversal<S,E2> Merges the list traverser and list argument.default CredentialTraversal<S,Edge> mergeE()Spawns aGraphTraversalby doing a merge (i.e.default CredentialTraversal<S,Edge> Spawns aGraphTraversalby doing a merge (i.e.default CredentialTraversal<S,Edge> Spawns aGraphTraversalby doing a merge (i.e.default CredentialTraversal<S,Edge> Spawns aGraphTraversalby doing a merge (i.e.default CredentialTraversal<S,Vertex> mergeV()Performs a merge (i.e.default CredentialTraversal<S,Vertex> Performs a merge (i.e.default CredentialTraversal<S,Vertex> Performs a merge (i.e.default CredentialTraversal<S,Vertex> Performs a merge (i.e.default <E2 extends Comparable>
CredentialTraversal<S,E2> min()Determines the smallest value in the stream.default <E2 extends Comparable>
CredentialTraversal<S,E2> Determines the smallest value in the stream given theScope.default <S2> CredentialTraversal<S,E> FiltersElists given the providedpredicate.default CredentialTraversal<S,E> Removes objects from the traversal stream when the traversal provided as an argument returns any objects.default <M,E2> CredentialTraversal<S, E> This is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step.default <M,E2> CredentialTraversal<S, E> This is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step.default <M,E2> CredentialTraversal<S, E> This is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step.default <M,E2> CredentialTraversal<S, E> This is a step modulator toGraphTraversal.mergeV()where the provided argument associated to thetokenis applied according to the semantics of the step.default <E2> CredentialTraversal<S,E> This step modifiesGraphTraversal.choose(Function)to specifies the available choices that might be executed.default <E2> CredentialTraversal<S,E2> Returns the result of the specified traversal if it yields a result, otherwise it returns the calling element.default CredentialTraversal<S,E> Ensures that at least one of the provided traversals yield a result.default CredentialTraversal<S,E> order()Order all the objects in the traversal up to this point and then emit them one-by-one in their ordered sequence.default CredentialTraversal<S,E> Order either theScope.localobject (e.g.default CredentialTraversal<S,Vertex> otherV()Map theEdgeto the incident vertex that was not just traversed from in the path history.default CredentialTraversal<S,Vertex> out()Map theVertexto its outgoing adjacent vertices.default CredentialTraversal<S,Vertex> Map theVertexto its outgoing adjacent vertices given the edge labels.default CredentialTraversal<S,Vertex> Map theVertexto its outgoing adjacent vertices given the edge labels.default CredentialTraversal<S,Edge> outE()Map theVertexto its outgoing incident edges.default CredentialTraversal<S,Edge> Map theVertexto its outgoing incident edges given the edge labels.default CredentialTraversal<S,Edge> Map theVertexto its outgoing incident edges given the edge labels.default CredentialTraversal<S,Vertex> outV()default CredentialTraversal<S,E> pageRank()Calculates a PageRank over the graph using a 0.85 for thealphavalue.default CredentialTraversal<S,E> pageRank(double alpha) Calculates a PageRank over the graph.default CredentialTraversal<S,Path> path()default CredentialTraversal<S,E> Executes a Peer Pressure community detection algorithm over the graph.default CredentialTraversal<S,List<List<?>>> Calculates the cartesian product between the list traverser and list argument.default CredentialTraversal<S,TraversalMetrics> profile()Profile the traversal.default CredentialTraversal<S,E> Allows developers to examine statistical information about a traversal providing data like execution times, counts, etc.default CredentialTraversal<S,E> program(VertexProgram<?> vertexProgram) Executes an arbitraryVertexProgramover the graph.default <E2> CredentialTraversal<S,Map<String, E2>> Projects the current object in the stream into aMapthat is keyed by the provided labels.default <E2> CredentialTraversal<S,? extends Property<E2>> properties(String... propertyKeys) Map theElementto its associated properties given the provide property keys.default CredentialTraversal<S,E> Sets the key and value of aProperty.default CredentialTraversal<S,E> When aMapis supplied then each of the key/value pairs in the map will be added as property.default CredentialTraversal<S,E> Sets properties on the current element using a child traversal that produces aMap.default CredentialTraversal<S,E> property(VertexProperty.Cardinality cardinality, Object key, Object value, Object... keyValues) Sets aPropertyvalue and related meta properties if supplied, if supported by theGraphand if theElementis aVertexProperty.default <E2> CredentialTraversal<S,Map<String, E2>> propertyMap(String... propertyKeys) default CredentialTraversal<S,E> range(long low, long high) Filter the objects in the traversal by the number of them to pass through the stream.default <E2> CredentialTraversal<S,E2> Filter the objects in the traversal by the number of them to pass through the stream as constrained by theScope.default <E2> CredentialTraversal<S,E2> Filter the objects in the traversal by the number of them to pass through the stream as constrained by theScope.default CredentialTraversal<S,E> Filter the objects in the traversal by the number of them to pass through the stream.default CredentialTraversal<S,E> read()This step is technically a step modulator for the theGraphTraversalSource.io(String)step which instructs the step to perform a read with its given configuration.default CredentialTraversal<S,E> This step is used for looping over a traversal given some break predicate and with a specified loop name.default CredentialTraversal<S,E> This step is used for looping over a traversal given some break predicate.default CredentialTraversal<S,String> Returns a string with the specified characters in the original string replaced with the new characters.default <E2> CredentialTraversal<S,E2> Returns a string with the specified characters in the original string replaced with the new characters.default <E2> CredentialTraversal<S,E2> reverse()Returns the reverse of the incoming traverser.default CredentialTraversal<S,String> rTrim()Returns a string with trailing whitespace removed.default <E2> CredentialTraversal<S,E2> Returns a string with trailing whitespace removed.default <E2> CredentialTraversal<S,E2> sack()Map theTraverserto itsTraverser.sack()value.default <V,U> CredentialTraversal<S, E> sack(BiFunction<V, U, V> sackOperator) Map theTraverserto itsTraverser.sack()value.default CredentialTraversal<S,E> sample(int amountToSample) Allow some specified number of objects to pass through the stream.default CredentialTraversal<S,E> Allow some specified number of objects to pass through the stream.default <E2> CredentialTraversal<S,E2> Map theTraverserto the object specified by theselectKey.default <E2> CredentialTraversal<S,Map<String, E2>> default <E2> CredentialTraversal<S,E2> default <E2> CredentialTraversal<S,Map<String, E2>> default <E2> CredentialTraversal<S,E2> default <E2> CredentialTraversal<S,E2> Map theTraverserto the object specified by the key returned by thekeyTraversal.default <E2> CredentialTraversal<S,Collection<E2>> A version ofselectthat allows for the extraction of aColumnfrom objects in the traversal.default CredentialTraversal<S,Path> Executes a Shortest Path algorithm over the graph.default CredentialTraversal<S,E> sideEffect(Consumer<Traverser<E>> consumer) Perform some operation on theTraverserand pass it to the next step unmodified.default CredentialTraversal<S,E> sideEffect(Traversal<?, ?> sideEffectTraversal) Perform some operation on theTraverserand pass it to the next step unmodified.default CredentialTraversal<S,E> default CredentialTraversal<S,E> skip(long skip) Filters out the firstnobjects in the traversal.default <E2> CredentialTraversal<S,E2> Filters out the firstnobjects in the traversal.default <E2> CredentialTraversal<S,E2> Filters out the firstnobjects in the traversal.default CredentialTraversal<S,E> Filters out the firstnobjects in the traversal.default CredentialTraversal<S,List<String>> Returns a list of strings created by splitting the incoming string traverser around the matches of the given separator.default <E2> CredentialTraversal<S,List<E2>> Returns a list of strings created by splitting the incoming string traverser around the matches of the given separator.default CredentialTraversal<S,Edge> Extracts a portion of the graph being traversed into aGraphobject held in the specified side-effect key.default CredentialTraversal<S,String> substring(int startIndex) Returns a substring of the incoming string traverser with a 0-based start index (inclusive) specified, to the end of the string.default CredentialTraversal<S,String> substring(int startIndex, int endIndex) Returns a substring of the incoming string traverser with a 0-based start index (inclusive) and end index (exclusive).default <E2> CredentialTraversal<S,E2> Returns a substring of the incoming string traverser with a 0-based start index (inclusive) specified, to the end of the string.default <E2> CredentialTraversal<S,E2> Returns a substring of the incoming string traverser with a 0-based start index (inclusive) and end index (exclusive).default <E2 extends Number>
CredentialTraversal<S,E2> sum()Map the traversal stream to its reduction as a sum of theTraverser.get()values multiplied by theirTraverser.bulk()(i.e.default <E2 extends Number>
CredentialTraversal<S,E2> Map the traversal stream to its reduction as a sum of theTraverser.get()values multiplied by theirTraverser.bulk()given the specifiedScope(i.e.default CredentialTraversal<S,E> tail()Filters the objects in the traversal emitted as being last objects in the stream.default CredentialTraversal<S,E> tail(long limit) Filters the objects in the traversal emitted as being last objects in the stream.default <E2> CredentialTraversal<S,E2> Filters the objects in the traversal emitted as being last objects in the stream given theScope.default <E2> CredentialTraversal<S,E2> Filters the objects in the traversal emitted as being last objects in the stream given theScope.default <E2> CredentialTraversal<S,E2> Filters the objects in the traversal emitted as being last objects in the stream given theScope.default CredentialTraversal<S,E> Filters the objects in the traversal emitted as being last objects in the stream.default CredentialTraversal<S,E> timeLimit(long timeLimit) Once the firstTraverserhits this step, a count down is started.default CredentialTraversal<S,E> times(int maxLoops) Modifies aGraphTraversal.repeat(Traversal)to specify how many loops should occur before exiting.default CredentialTraversal<S,E> Provideto()-modulation to respective steps.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.default CredentialTraversal<S,Vertex> Map theVertexto its adjacent vertices given a direction.default CredentialTraversal<S,Vertex> Map theVertexto its adjacent vertices given a direction and edge labels.default CredentialTraversal<S,Vertex> Map theVertexto its adjacent vertices given a direction and edge labels.default CredentialTraversal<S,E> When used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.default CredentialTraversal<S,Edge> Map theVertexto its incident edges given the direction.default CredentialTraversal<S,Edge> Map theVertexto its incident edges given the direction and edge labels.default CredentialTraversal<S,Edge> Map theVertexto its incident edges given the direction and edge labels.default CredentialTraversal<S,String> toLower()Returns the lowercase representation of incoming string traverser.default <E2> CredentialTraversal<S,E2> Returns the lowercase representation of incoming string or list of strings.default CredentialTraversal<S,String> toUpper()Returns the uppercase representation of incoming string traverser.default <E2> CredentialTraversal<S,E2> Returns the uppercase representation of incoming string or list of strings.default CredentialTraversal<S,Vertex> Map theEdgeto its incident vertices given the direction.default CredentialTraversal<S,Tree> tree()Aggregates the emanating paths into aTreedata structure.default CredentialTraversal<S,E> Aggregates the emanating paths into aTreedata structure.default CredentialTraversal<S,String> trim()Returns a string with leading and trailing whitespace removed.default <E2> CredentialTraversal<S,E2> Returns a string with leading and trailing whitespace removed.default <E2> CredentialTraversal<S,E2> unfold()Unrolls aIterator,IterableorMapinto a linear form or simply emits the object if it is not one of those types.default <E2> CredentialTraversal<S,E2> Merges the results of an arbitrary number of traversals.default CredentialTraversal<S,E> Modifies aGraphTraversal.repeat(Traversal)to determine when the loop should exit.default CredentialTraversal<S,E> Modifies aGraphTraversal.repeat(Traversal)to determine when the loop should exit.default CredentialTraversal<S,Vertex> Creates or updates a user.default CredentialTraversal<S,Vertex> users()Finds all users.default CredentialTraversal<S,Vertex> Finds users by name.default CredentialTraversal<S,Vertex> AVstep is usually used to start a traversal but it may also be used mid-traversal.default CredentialTraversal<S,Vertex> AVstep that accepts a child traversal whose results are used as vertex IDs for lookup.default <E2> CredentialTraversal<S,E2> value()Map thePropertyto itsProperty.value().default <E2> CredentialTraversal<S,Map<Object, E2>> default <E2> CredentialTraversal<S,Map<Object, E2>> default <E2> CredentialTraversal<S,E2> Map theElementto the values of the associated properties given the provide property keys.default CredentialTraversal<S,E> Filters the current object based on the object itself or the path history.default CredentialTraversal<S,E> Filters the current object based on the object itself or the path history.default CredentialTraversal<S,E> Filters the current object based on the object itself or the path history.default CredentialTraversal<S,E> Provides a configuration to a step in the form of a key which is the same aswith(key, true).default CredentialTraversal<S,E> Provides a configuration to a step in the form of a key and value pair.default CredentialTraversal<S,E> write()This step is technically a step modulator for the theGraphTraversalSource.io(String)step which instructs the step to perform a write with its given configuration.Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal
asAdminMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal.Admin
addStep, cloneMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal
close, explain, fill, forEachRemaining, forEachRemaining, next, notifyClose, promise, toBulkSet, toList, toSet, toStream, tryNextMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal.Admin
addStart, addStarts, addStep, applyStrategies, equals, getEndStep, getGraph, getGremlinLang, getGValueManager, getParent, getSideEffects, getStartStep, getSteps, getStrategies, getTraversalSource, getTraverserGenerator, getTraverserRequirements, getTraverserSetSupplier, isLocked, isRoot, lock, nextTraverser, removeStep, removeStep, reset, setGraph, setGValueManager, setParent, setSideEffects, setStrategies
-
Method Details
-
users
Description copied from interface:CredentialTraversalDslFinds all users.- Specified by:
usersin interfaceCredentialTraversalDsl<S,E>
-
users
Description copied from interface:CredentialTraversalDslFinds users by name.- Specified by:
usersin interfaceCredentialTraversalDsl<S,E>
-
user
Description copied from interface:CredentialTraversalDslCreates or updates a user.- Specified by:
userin interfaceCredentialTraversalDsl<S,E>
-
map
Description copied from interface:GraphTraversal- Specified by:
mapin interfaceGraphTraversal<S,E> - Parameters:
function- the lambda expression that does the functional mapping- Returns:
- the traversal with an appended
LambdaMapStep. - See Also:
-
map
Description copied from interface:GraphTraversal- Specified by:
mapin interfaceGraphTraversal<S,E> - Parameters:
mapTraversal- the traversal expression that does the functional mapping- Returns:
- the traversal with an appended
LambdaMapStep. - See Also:
-
flatMap
Description copied from interface:GraphTraversalMap aTraverserreferencing an object of typeEto an iterator of objects of typeE2. The resultant iterator is drained one-by-one before a newEobject is pulled in for processing.- Specified by:
flatMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the type of the returned iterator objects- Parameters:
function- the lambda expression that does the functional mapping- Returns:
- the traversal with an appended
LambdaFlatMapStep. - See Also:
-
flatMap
Description copied from interface:GraphTraversalMap aTraverserreferencing an object of typeEto an iterator of objects of typeE2. The internal traversal is drained one-by-one before a newEobject is pulled in for processing.- Specified by:
flatMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the end type of the internal traversal- Parameters:
flatMapTraversal- the traversal generating objects of typeE2- Returns:
- the traversal with an appended
TraversalFlatMapStep. - See Also:
-
id
Description copied from interface:GraphTraversalMap theElementto itsElement.id().- Specified by:
idin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
IdStep. - See Also:
-
label
Description copied from interface:GraphTraversalMap theElementto itsElement.label().- Specified by:
labelin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LabelStep. - See Also:
-
labels
Description copied from interface:GraphTraversalMap theElementto its labels, emitting each label as a separate traverser. For vertices with multiple labels, each label is emitted individually.- Specified by:
labelsin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LabelsStep.
-
identity
Description copied from interface:GraphTraversalMap theEobject to itself. In other words, a "no op."- Specified by:
identityin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
IdentityStep.
-
constant
Description copied from interface:GraphTraversalMap any object to a fixedEvalue.- Specified by:
constantin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ConstantStep. - See Also:
-
constant
Description copied from interface:GraphTraversalMap any object to a fixedEvalue. For internal use for parameterization features.- Specified by:
constantin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ConstantStep. - See Also:
-
V
Description copied from interface:GraphTraversalAVstep is usually used to start a traversal but it may also be used mid-traversal.- Specified by:
Vin interfaceGraphTraversal<S,E> - Parameters:
vertexIdsOrElements- vertices to inject into the traversal- Returns:
- the traversal with an appended
GraphStep - See Also:
-
V
Description copied from interface:GraphTraversalAVstep that accepts a child traversal whose results are used as vertex IDs for lookup.- Specified by:
Vin interfaceGraphTraversal<S,E> - Parameters:
traversal- the child traversal that produces vertex IDs- Returns:
- the traversal with an appended
GraphStep - See Also:
-
E
Description copied from interface:GraphTraversalAEstep is usually used to start a traversal but it may also be used mid-traversal.- Specified by:
Ein interfaceGraphTraversal<S,E> - Parameters:
edgeIdsOrElements- edges to inject into the traversal- Returns:
- the traversal with an appended
GraphStep - See Also:
-
E
Description copied from interface:GraphTraversalAEstep that accepts a child traversal whose results are used as edge IDs for lookup.- Specified by:
Ein interfaceGraphTraversal<S,E> - Parameters:
traversal- the child traversal that produces edge IDs- Returns:
- the traversal with an appended
GraphStep - See Also:
-
to
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices given a direction.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertex- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
to
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices given a direction and edge labels.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertexedgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
to
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices given a direction and edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertexedgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
out
Description copied from interface:GraphTraversalMap theVertexto its outgoing adjacent vertices.- Specified by:
outin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
out
Description copied from interface:GraphTraversalMap theVertexto its outgoing adjacent vertices given the edge labels.- Specified by:
outin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
out
Description copied from interface:GraphTraversalMap theVertexto its outgoing adjacent vertices given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
outin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
in
Description copied from interface:GraphTraversalMap theVertexto its incoming adjacent vertices.- Specified by:
inin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
in
Description copied from interface:GraphTraversalMap theVertexto its incoming adjacent vertices given the edge labels.- Specified by:
inin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
in
Description copied from interface:GraphTraversalMap theVertexto its incoming adjacent vertices given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
inin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
both
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices.- Specified by:
bothin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
both
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices given the edge labels.- Specified by:
bothin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
both
Description copied from interface:GraphTraversalMap theVertexto its adjacent vertices given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
bothin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
toE
Description copied from interface:GraphTraversalMap theVertexto its incident edges given the direction.- Specified by:
toEin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertex- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
toE
Description copied from interface:GraphTraversalMap theVertexto its incident edges given the direction and edge labels.- Specified by:
toEin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertexedgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
toE
Description copied from interface:GraphTraversalMap theVertexto its incident edges given the direction and edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
toEin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverse from the current vertexedgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
outE
Description copied from interface:GraphTraversalMap theVertexto its outgoing incident edges.- Specified by:
outEin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
outE
Description copied from interface:GraphTraversalMap theVertexto its outgoing incident edges given the edge labels.- Specified by:
outEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
outE
Description copied from interface:GraphTraversalMap theVertexto its outgoing incident edges given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
outEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
inE
Description copied from interface:GraphTraversalMap theVertexto its incoming incident edges.- Specified by:
inEin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
inE
Description copied from interface:GraphTraversalMap theVertexto its incoming incident edges given the edge labels.- Specified by:
inEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
inE
Description copied from interface:GraphTraversalMap theVertexto its incoming incident edges given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
inEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
bothE
Description copied from interface:GraphTraversalMap theVertexto its incident edges.- Specified by:
bothEin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
VertexStep. - See Also:
-
bothE
Description copied from interface:GraphTraversalMap theVertexto its incident edges given the edge labels.- Specified by:
bothEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
bothE
Description copied from interface:GraphTraversalMap theVertexto its incident edges given the edge labels. The arguments for the labels must be either aStringor aGValue<String>. For internal use for parameterization.- Specified by:
bothEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabels- the edge labels to traverse- Returns:
- the traversal with an appended
VertexStep. - See Also:
-
toV
Description copied from interface:GraphTraversalMap theEdgeto its incident vertices given the direction.- Specified by:
toVin interfaceGraphTraversal<S,E> - Parameters:
direction- the direction to traverser from the current edge- Returns:
- the traversal with an appended
EdgeVertexStep. - See Also:
-
inV
Description copied from interface:GraphTraversal- Specified by:
inVin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
EdgeVertexStep. - See Also:
-
outV
Description copied from interface:GraphTraversal- Specified by:
outVin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
EdgeVertexStep. - See Also:
-
bothV
Description copied from interface:GraphTraversalMap theEdgeto its incident vertices.- Specified by:
bothVin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
EdgeVertexStep. - See Also:
-
otherV
Description copied from interface:GraphTraversalMap theEdgeto the incident vertex that was not just traversed from in the path history.- Specified by:
otherVin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
EdgeOtherVertexStep. - See Also:
-
order
Description copied from interface:GraphTraversalOrder all the objects in the traversal up to this point and then emit them one-by-one in their ordered sequence.- Specified by:
orderin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
OrderGlobalStep. - See Also:
-
order
Description copied from interface:GraphTraversalOrder either theScope.localobject (e.g. a list, map, etc.) or the entireScope.globaltraversal stream.- Specified by:
orderin interfaceGraphTraversal<S,E> - Parameters:
scope- whether the ordering is the current local object or the entire global stream.- Returns:
- the traversal with an appended
OrderGlobalSteporOrderLocalStepdepending on thescope. - See Also:
-
properties
Description copied from interface:GraphTraversalMap theElementto its associated properties given the provide property keys. If no property keys are provided, then all properties are emitted.- Specified by:
propertiesin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the returned properties- Parameters:
propertyKeys- the properties to retrieve- Returns:
- the traversal with an appended
PropertiesStep. - See Also:
-
values
Description copied from interface:GraphTraversalMap theElementto the values of the associated properties given the provide property keys. If no property keys are provided, then all property values are emitted.- Specified by:
valuesin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the properties- Parameters:
propertyKeys- the properties to retrieve their value from- Returns:
- the traversal with an appended
PropertiesStep. - See Also:
-
propertyMap
Description copied from interface:GraphTraversalMap theElementto aMapof the properties key'd according to theirProperty.key(). If no property keys are provided, then all properties are retrieved.- Specified by:
propertyMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the returned properties- Parameters:
propertyKeys- the properties to retrieve- Returns:
- the traversal with an appended
PropertyMapStep. - See Also:
-
elementMap
Description copied from interface:GraphTraversalMap theElementto aMapof the property values key'd according to theirProperty.key(). If no property keys are provided, then all property values are retrieved. For vertices, theMapwill be returned with the assumption of single property values along withT.idandT.label. PreferGraphTraversal.valueMap(String...)if multi-property processing is required. For edges, keys will include additional related edge structure ofDirection.INandDirection.OUTwhich themselves areMapinstances of the particularVertexrepresented byT.idandT.label.- Specified by:
elementMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the returned properties- Parameters:
propertyKeys- the properties to retrieve- Returns:
- the traversal with an appended
ElementMapStep. - See Also:
-
valueMap
Description copied from interface:GraphTraversalMap theElementto aMapof the property values key'd according to theirProperty.key(). If no property keys are provided, then all property values are retrieved.- Specified by:
valueMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the returned properties- Parameters:
propertyKeys- the properties to retrieve- Returns:
- the traversal with an appended
PropertyMapStep. - See Also:
-
valueMap
default <E2> CredentialTraversal<S,Map<Object, valueMapE2>> (boolean includeTokens, String... propertyKeys) Description copied from interface:GraphTraversalMap theElementto aMapof the property values key'd according to theirProperty.key(). If no property keys are provided, then all property values are retrieved.- Specified by:
valueMapin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the value type of the returned properties- Parameters:
includeTokens- whether to includeTtokens in the emitted map.propertyKeys- the properties to retrieve- Returns:
- the traversal with an appended
PropertyMapStep. - See Also:
-
key
Description copied from interface:GraphTraversalMap thePropertyto itsProperty.key().- Specified by:
keyin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
PropertyKeyStep. - See Also:
-
value
Description copied from interface:GraphTraversalMap thePropertyto itsProperty.value().- Specified by:
valuein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
PropertyValueStep. - See Also:
-
path
Description copied from interface:GraphTraversal- Specified by:
pathin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
PathStep. - See Also:
-
match
Description copied from interface:GraphTraversal- Specified by:
matchin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the type of the objects bound in the variables- Parameters:
matchTraversals- the traversal that maintain variables which must hold for the life of the traverser- Returns:
- the traversal with an appended
MatchStep. - See Also:
-
match
Description copied from interface:GraphTraversalMap theTraverserto a result using a declarative query string. The query language is not prescribed or implemented by the framework; it defaults tonull, meaning the graph provider will use its native query language. Use.with("queryLanguage", value)to specify a language explicitly. Consult the graph system you are using to determine what query language you can give to this step.- Specified by:
matchin interfaceGraphTraversal<S,E> - Parameters:
matchQuery- the declarative query string- Returns:
- the traversal with an appended
DeclarativeMatchStep.
-
match
default CredentialTraversal<S,Map<String, matchObject>> (String matchQuery, Map<String, Object> params) Description copied from interface:GraphTraversalMap theTraverserto a result using a declarative query string with bound parameters. The query language is not prescribed or implemented by the framework; it defaults tonull, meaning the graph provider will use its native query language. Use.with("queryLanguage", value)to specify a language explicitly. Consult the graph system you are using to determine what query language you can give to this step.- Specified by:
matchin interfaceGraphTraversal<S,E> - Parameters:
matchQuery- the declarative query stringparams- the query parameters (may benull)- Returns:
- the traversal with an appended
DeclarativeMatchStep.
-
sack
Description copied from interface:GraphTraversalMap theTraverserto itsTraverser.sack()value.- Specified by:
sackin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the sack value type- Returns:
- the traversal with an appended
SackStep. - See Also:
-
loops
Description copied from interface:GraphTraversalIf theTraversersupports looping then calling this method will extract the number of loops for that traverser.- Specified by:
loopsin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LoopsStep - See Also:
-
loops
Description copied from interface:GraphTraversalIf theTraversersupports looping then calling this method will extract the number of loops for that traverser for the named loop.- Specified by:
loopsin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LoopsStep - See Also:
-
project
default <E2> CredentialTraversal<S,Map<String, projectE2>> (String projectKey, String... otherProjectKeys) Description copied from interface:GraphTraversalProjects the current object in the stream into aMapthat is keyed by the provided labels.- Specified by:
projectin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ProjectStep - See Also:
-
select
default <E2> CredentialTraversal<S,Map<String, selectE2>> (Pop pop, String selectKey1, String selectKey2, String... otherSelectKeys) Description copied from interface:GraphTraversal- Specified by:
selectin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the type of the objects projected- Parameters:
pop- if there are multiple objects referenced in the path, thePopto use.selectKey1- the first key to projectselectKey2- the second key to projectotherSelectKeys- the third+ keys to project- Returns:
- the traversal with an appended
SelectStep. - See Also:
-
select
default <E2> CredentialTraversal<S,Map<String, selectE2>> (String selectKey1, String selectKey2, String... otherSelectKeys) Description copied from interface:GraphTraversal- Specified by:
selectin interfaceGraphTraversal<S,E> - Type Parameters:
E2- the type of the objects projected- Parameters:
selectKey1- the first key to projectselectKey2- the second key to projectotherSelectKeys- the third+ keys to project- Returns:
- the traversal with an appended
SelectStep. - See Also:
-
select
Description copied from interface:GraphTraversal- Specified by:
selectin interfaceGraphTraversal<S,E> selectKey- the key to project- Returns:
- the traversal with an appended
SelectStep. - See Also:
-
select
Description copied from interface:GraphTraversalMap theTraverserto the object specified by theselectKey. Note that unlike other uses ofselectwhere there are multiple keys, this use ofselectwith a single key does not produce aMap.- Specified by:
selectin interfaceGraphTraversal<S,E> - Parameters:
selectKey- the key to project- Returns:
- the traversal with an appended
SelectStep. - See Also:
-
select
Description copied from interface:GraphTraversalMap theTraverserto the object specified by the key returned by thekeyTraversaland apply thePopoperation to it.- Specified by:
selectin interfaceGraphTraversal<S,E> keyTraversal- the traversal expression that selects the key to project- Returns:
- the traversal with an appended
SelectStep. - See Also:
-
select
Description copied from interface:GraphTraversalMap theTraverserto the object specified by the key returned by thekeyTraversal. Note that unlike other uses ofselectwhere there are multiple keys, this use ofselectwith a traversal does not produce aMap.- Specified by:
selectin interfaceGraphTraversal<S,E> - Parameters:
keyTraversal- the traversal expression that selects the key to project- Returns:
- the traversal with an appended
TraversalSelectStep. - See Also:
-
select
Description copied from interface:GraphTraversalA version ofselectthat allows for the extraction of aColumnfrom objects in the traversal.- Specified by:
selectin interfaceGraphTraversal<S,E> - Parameters:
column- the column to extract- Returns:
- the traversal with an appended
TraversalMapStep - See Also:
-
unfold
Description copied from interface:GraphTraversalUnrolls aIterator,IterableorMapinto a linear form or simply emits the object if it is not one of those types.- Specified by:
unfoldin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
UnfoldStep - See Also:
-
fold
Description copied from interface:GraphTraversalRolls up objects in the stream into an aggregate list.- Specified by:
foldin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
FoldStep - See Also:
-
fold
Description copied from interface:GraphTraversalRolls up objects in the stream into an aggregate value as defined by aseedandBiFunction.- Specified by:
foldin interfaceGraphTraversal<S,E> - Parameters:
seed- the value to provide as the first argument to thefoldFunctionfoldFunction- the function to fold by where the first argument is theseedor the value returned from subsequent class and the second argument is the value from the stream- Returns:
- the traversal with an appended
FoldStep - See Also:
-
count
Description copied from interface:GraphTraversalMap the traversal stream to its reduction as a sum of theTraverser.bulk()values (i.e. count the number of traversers up to this point).- Specified by:
countin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
CountGlobalStep. - See Also:
-
count
Description copied from interface:GraphTraversalMap the traversal stream to its reduction as a sum of theTraverser.bulk()values given the specifiedScope(i.e. count the number of traversers up to this point).- Specified by:
countin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
CountGlobalSteporCountLocalStepdepending on theScope - See Also:
-
sum
Description copied from interface:GraphTraversalMap the traversal stream to its reduction as a sum of theTraverser.get()values multiplied by theirTraverser.bulk()(i.e. sum the traverser values up to this point).- Specified by:
sumin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
SumGlobalStep. - See Also:
-
sum
Description copied from interface:GraphTraversalMap the traversal stream to its reduction as a sum of theTraverser.get()values multiplied by theirTraverser.bulk()given the specifiedScope(i.e. sum the traverser values up to this point).- Specified by:
sumin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
SumGlobalSteporSumLocalStepdepending on theScope. - See Also:
-
max
Description copied from interface:GraphTraversalDetermines the largest value in the stream.- Specified by:
maxin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MaxGlobalStep. - See Also:
-
max
Description copied from interface:GraphTraversalDetermines the largest value in the stream given theScope.- Specified by:
maxin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MaxGlobalSteporMaxLocalStepdepending on theScope - See Also:
-
min
Description copied from interface:GraphTraversalDetermines the smallest value in the stream.- Specified by:
minin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MinGlobalStep. - See Also:
-
min
Description copied from interface:GraphTraversalDetermines the smallest value in the stream given theScope.- Specified by:
minin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MinGlobalSteporMinLocalStepdepending on theScope - See Also:
-
mean
Description copied from interface:GraphTraversalDetermines the mean value in the stream.- Specified by:
meanin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MeanGlobalStep. - See Also:
-
mean
Description copied from interface:GraphTraversalDetermines the mean value in the stream given theScope.- Specified by:
meanin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MeanGlobalSteporMeanLocalStepdepending on theScope - See Also:
-
group
Description copied from interface:GraphTraversalOrganize objects in the stream into aMap. Calls togroup()are typically accompanied withGraphTraversal.by()modulators which help specify how the grouping should occur.- Specified by:
groupin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
GroupStep. - See Also:
-
groupCount
Description copied from interface:GraphTraversalCounts the number of times a particular objects has been part of a traversal, returning aMapwhere the object is the key and the value is the count.- Specified by:
groupCountin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
GroupCountStep. - See Also:
-
tree
Description copied from interface:GraphTraversalAggregates the emanating paths into aTreedata structure.- Specified by:
treein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
TreeStep - See Also:
-
addV
Description copied from interface:GraphTraversalAdds aVertex.- Specified by:
addVin interfaceGraphTraversal<S,E> - Parameters:
label- the first (or only) label of theVertexto addadditionalLabels- additional labels (may be empty for single-label)- Returns:
- the traversal with the
AddVertexStepContractadded - See Also:
-
addV
Description copied from interface:GraphTraversal- Specified by:
addVin interfaceGraphTraversal<S,E> - Parameters:
first- the first (or only) label traversalmore- additional label traversals (may be empty for single-traversal behavior)- Returns:
- the traversal with the
AddVertexStepContractadded - See Also:
-
addV
Description copied from interface:GraphTraversalAdds aVertexwith a default vertex label.- Specified by:
addVin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the
AddVertexStepContractadded - See Also:
-
addV
default CredentialTraversal<S,Vertex> addV(GValue<String> label, GValue<String>... additionalLabels) Description copied from interface:GraphTraversalAdds aVertex.- Specified by:
addVin interfaceGraphTraversal<S,E> - Parameters:
label- the label (or only) labeladditionalLabels- additional labels. May be empty for single-label)- Returns:
- the traversal with the
AddVertexStepContractadded
-
mergeV
Description copied from interface:GraphTraversalPerforms a merge (i.e. upsert) style operation for anVertexusing the incomingMaptraverser as an argument. TheMaprepresents search criteria and will match each of the supplied key/value pairs where the keys may beStringproperty values or a value ofT. If a match is not made it will use that search criteria to create the newVertex.- Specified by:
mergeVin interfaceGraphTraversal<S,E>
-
mergeV
Description copied from interface:GraphTraversalPerforms a merge (i.e. upsert) style operation for anVertexusing aMapas an argument. TheMaprepresents search criteria and will match each of the supplied key/value pairs where the keys may beStringproperty values or a value ofT. If a match is not made it will use that search criteria to create the newVertex.- Specified by:
mergeVin interfaceGraphTraversal<S,E> - Parameters:
searchCreate- ThisMapcan have a key ofTor aString.
-
mergeV
Description copied from interface:GraphTraversalPerforms a merge (i.e. upsert) style operation for anVertexusing aMapas an argument. TheMaprepresents search criteria and will match each of the supplied key/value pairs where the keys may beStringproperty values or a value ofT. If a match is not made it will use that search criteria to create the newVertex. -
mergeV
Description copied from interface:GraphTraversalPerforms a merge (i.e. upsert) style operation for anVertexusing aMapas an argument. TheMaprepresents search criteria and will match each of the supplied key/value pairs where the keys may beStringproperty values or a value ofT. If a match is not made it will use that search criteria to create the newVertex.- Specified by:
mergeVin interfaceGraphTraversal<S,E> - Parameters:
searchCreate- ThisMapcan have a key ofTor aString.
-
mergeE
Description copied from interface:GraphTraversalSpawns aGraphTraversalby doing a merge (i.e. upsert) style operation for anEdgeusing an incomingMapas an argument.- Specified by:
mergeEin interfaceGraphTraversal<S,E>
-
mergeE
Description copied from interface:GraphTraversalSpawns aGraphTraversalby doing a merge (i.e. upsert) style operation for anEdgeusing aMapas an argument. -
mergeE
Description copied from interface:GraphTraversalSpawns aGraphTraversalby doing a merge (i.e. upsert) style operation for anEdgeusing aMapas an argument. -
mergeE
Description copied from interface:GraphTraversalSpawns aGraphTraversalby doing a merge (i.e. upsert) style operation for anEdgeusing aMapas an argument. -
addE
Description copied from interface:GraphTraversalAdds anEdgewith the specified edge label.- Specified by:
addEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabel- the label of the newly added edge- Returns:
- the traversal with the
AddEdgeStepContractadded - See Also:
-
addE
Description copied from interface:GraphTraversal- Specified by:
addEin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the
AddEdgeStepContractadded - See Also:
-
addE
Description copied from interface:GraphTraversalAdds anEdgewith the specified edge label.- Specified by:
addEin interfaceGraphTraversal<S,E> - Parameters:
edgeLabel- the label of the newly added edge- Returns:
- the traversal with the
AddEdgeStepContractadded - See Also:
-
from
Description copied from interface:GraphTraversalProvidefrom()-modulation to respective steps.- Specified by:
fromin interfaceGraphTraversal<S,E> - Parameters:
fromStepLabel- the step label to modulate to.- Returns:
- the traversal with the modified
FromToModulatingstep. - See Also:
-
from
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.- Specified by:
fromin interfaceGraphTraversal<S,E> - Parameters:
fromVertex- the vertex for selecting the outgoing vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
from
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.- Specified by:
fromin interfaceGraphTraversal<S,E> - Parameters:
fromVertex- the vertex for selecting the outgoing vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
to
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
toVertex- the vertex for selecting the incoming vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
to
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
toVertex- the traversal for selecting the incoming vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
from
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the outgoing vertex of the newly addedEdge.- Specified by:
fromin interfaceGraphTraversal<S,E> - Parameters:
fromVertex- the traversal for selecting the outgoing vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
to
Description copied from interface:GraphTraversalWhen used as a modifier toGraphTraversal.addE(String)this method specifies the traversal to use for selecting the incoming vertex of the newly addedEdge.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
toVertex- the vertex for selecting the incoming vertex- Returns:
- the traversal with the modified
AddEdgeStepContract - See Also:
-
to
Description copied from interface:GraphTraversalProvideto()-modulation to respective steps.- Specified by:
toin interfaceGraphTraversal<S,E> - Parameters:
toStepLabel- the step label to modulate to.- Returns:
- the traversal with the modified
FromToModulatingstep. - See Also:
-
math
Description copied from interface:GraphTraversal- Specified by:
mathin interfaceGraphTraversal<S,E> - Parameters:
expression- the mathematical expression with variables refering to scope variables.- Returns:
- the traversal with the
MathStepadded.
-
element
Description copied from interface:GraphTraversal- Specified by:
elementin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ElementStep. - See Also:
-
call
Description copied from interface:GraphTraversalPerform the specified service call with no parameters.- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service call- Returns:
- the traversal with an appended
CallStep. - See Also:
-
call
Description copied from interface:GraphTraversalPerform the specified service call with the specified static parameters.- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service callparams- static parameter map (no nested traversals)- Returns:
- the traversal with an appended
CallStep. - See Also:
-
call
Description copied from interface:GraphTraversalPerform the specified service call with the specified static parameters.- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service callparams- static parameter map (no nested traversals)- Returns:
- the traversal with an appended
CallStep. - See Also:
-
call
Description copied from interface:GraphTraversalPerform the specified service call with dynamic parameters produced by the specified child traversal.- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service callchildTraversal- a traversal that will produce a Map of parameters for the service call when invoked.- Returns:
- the traversal with an appended
CallStep. - See Also:
-
call
default <E> CredentialTraversal<S,E> call(String service, Map params, Traversal<?, Map<?, ?>> childTraversal) Description copied from interface:GraphTraversalPerform the specified service call with both static and dynamic parameters produced by the specified child traversal. These parameters will be merged at execution time per the provider implementation. Reference implementation merges dynamic into static (dynamic will overwrite static).- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service callparams- static parameter map (no nested traversals)childTraversal- a traversal that will produce a Map of parameters for the service call when invoked.- Returns:
- the traversal with an appended
CallStep. - See Also:
-
call
default <E> CredentialTraversal<S,E> call(String service, GValue<Map<?, ?>> params, Traversal<S, Map<?, ?>> childTraversal) Description copied from interface:GraphTraversalPerform the specified service call with both static and dynamic parameters produced by the specified child traversal. These parameters will be merged at execution time per the provider implementation. Reference implementation merges dynamic into static (dynamic will overwrite static).- Specified by:
callin interfaceGraphTraversal<S,E> - Parameters:
service- the name of the service callparams- static parameter map (no nested traversals)childTraversal- a traversal that will produce a Map of parameters for the service call when invoked.- Returns:
- the traversal with an appended
CallStep. - See Also:
-
concat
default CredentialTraversal<S,String> concat(Traversal<?, String> concatTraversal, Traversal<?, String>... otherConcatTraversals) Description copied from interface:GraphTraversalConcatenate values of an arbitrary number of string traversals to the incoming traverser.- Specified by:
concatin interfaceGraphTraversal<S,E> - Parameters:
concatTraversal- the traversal to concatenate.otherConcatTraversals- additional traversals to concatenate.- Returns:
- the traversal with an appended
ConcatStep. - See Also:
-
concat
Description copied from interface:GraphTraversalConcatenate an arbitrary number of strings to the incoming traverser.- Specified by:
concatin interfaceGraphTraversal<S,E> - Parameters:
concatStrings- the String values to concatenate.- Returns:
- the traversal with an appended
ConcatStep. - See Also:
-
asString
Description copied from interface:GraphTraversalReturns the value of incoming traverser as strings. Null values are returned as a string value "null".- Specified by:
asStringin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
AsStringGlobalStep. - See Also:
-
asString
Description copied from interface:GraphTraversalReturns the value of incoming traverser as strings. Null values are returned as a string value "null".- Specified by:
asStringin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.- Returns:
- the traversal with an appended
AsStringGlobalSteporAsStringLocalStepdepending on theScope. - See Also:
-
length
Description copied from interface:GraphTraversalReturns the length incoming string traverser. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
lengthin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LengthGlobalStep. - See Also:
-
length
Description copied from interface:GraphTraversalReturns the length incoming string or list. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
lengthin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within lists, global will operate on current traversal as a single object.- Returns:
- the traversal with an appended
LengthGlobalSteporLengthLocalStepdepending on theScope. - See Also:
-
toLower
Description copied from interface:GraphTraversalReturns the lowercase representation of incoming string traverser. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
toLowerin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ToLowerGlobalStep. - See Also:
-
toLower
Description copied from interface:GraphTraversalReturns the lowercase representation of incoming string or list of strings. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
toLowerin interfaceGraphTraversal<S,E> - Parameters:
scope- local will accept lists of string and operate on individual strings within the list, global will only accept string objects.- Returns:
- the traversal with an appended
ToLowerGlobalSteporToLowerLocalStepdepending on theScope. - See Also:
-
toUpper
Description copied from interface:GraphTraversalReturns the uppercase representation of incoming string traverser. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
toUpperin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ToUpperGlobalStep. - See Also:
-
toUpper
Description copied from interface:GraphTraversalReturns the uppercase representation of incoming string or list of strings. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
toUpperin interfaceGraphTraversal<S,E> - Parameters:
scope- local will accept lists of string and operate on individual strings within the list, global will only accept string objects.- Returns:
- the traversal with an appended
ToUpperGlobalSteporToUpperLocalStepdepending on theScope. - See Also:
-
trim
Description copied from interface:GraphTraversalReturns a string with leading and trailing whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
trimin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
TrimGlobalStep. - See Also:
-
trim
Description copied from interface:GraphTraversalReturns a string with leading and trailing whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
trimin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.- Returns:
- the traversal with an appended
TrimGlobalSteporTrimLocalStepdepending on theScope. - See Also:
-
lTrim
Description copied from interface:GraphTraversalReturns a string with leading whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
lTrimin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
LTrimGlobalStep. - See Also:
-
lTrim
Description copied from interface:GraphTraversalReturns a string with leading whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
lTrimin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.- Returns:
- the traversal with an appended
LTrimGlobalSteporLTrimLocalStepdepending on theScope. - See Also:
-
rTrim
Description copied from interface:GraphTraversalReturns a string with trailing whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
rTrimin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
RTrimGlobalStep. - See Also:
-
rTrim
Description copied from interface:GraphTraversalReturns a string with trailing whitespace removed. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
rTrimin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.- Returns:
- the traversal with an appended
RTrimGlobalSteporRTrimLocalStepdepending on theScope. - See Also:
-
reverse
Description copied from interface:GraphTraversalReturns the reverse of the incoming traverser. Null values are not processed and remain as null when returned.- Specified by:
reversein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ReverseStep. - See Also:
-
replace
Description copied from interface:GraphTraversalReturns a string with the specified characters in the original string replaced with the new characters. Any null arguments will be a no-op and the original string is returned. Null values from incoming traversers are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
replacein interfaceGraphTraversal<S,E> - Parameters:
oldChar- the character to be replaced.newChar- the character to replace.- Returns:
- the traversal with an appended
ReplaceGlobalStep. - See Also:
-
replace
Description copied from interface:GraphTraversalReturns a string with the specified characters in the original string replaced with the new characters. Any null arguments will be a no-op and the original string is returned. Null values from incoming traversers are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
replacein interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.oldChar- the character to be replaced.newChar- the character to replace.- Returns:
- the traversal with an appended
ReplaceGlobalSteporReplaceLocalStepdepending on theScope. - See Also:
-
split
Description copied from interface:GraphTraversalReturns a list of strings created by splitting the incoming string traverser around the matches of the given separator. A null separator will split the string by whitespaces. Null values from incoming traversers are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
splitin interfaceGraphTraversal<S,E> - Parameters:
separator- the character to split the string on.- Returns:
- the traversal with an appended
SplitGlobalStep. - See Also:
-
split
Description copied from interface:GraphTraversalReturns a list of strings created by splitting the incoming string traverser around the matches of the given separator. A null separator will split the string by whitespaces. Null values from incoming traversers are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
splitin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.separator- the character to split the string on.- Returns:
- the traversal with an appended
SplitGlobalSteporSplitLocalStepdepending on theScope. - See Also:
-
substring
Description copied from interface:GraphTraversalReturns a substring of the incoming string traverser with a 0-based start index (inclusive) specified, to the end of the string. If the start index is negative then it will begin at the specified index counted from the end of the string, or 0 if exceeding the string length. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
substringin interfaceGraphTraversal<S,E> - Parameters:
startIndex- the start index of the substring, inclusive.- Returns:
- the traversal with an appended
SubstringGlobalStep. - See Also:
-
substring
Description copied from interface:GraphTraversalReturns a substring of the incoming string traverser with a 0-based start index (inclusive) specified, to the end of the string. If the start index is negative then it will begin at the specified index counted from the end of the string, or 0 if exceeding the string length. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
substringin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.startIndex- the start index of the substring, inclusive.- Returns:
- the traversal with an appended
SubstringGlobalSteporSubstringLocalStepdepending on theScope. - See Also:
-
substring
Description copied from interface:GraphTraversalReturns a substring of the incoming string traverser with a 0-based start index (inclusive) and end index (exclusive). If the start index is negative then it will begin at the specified index counted from the end of the string, or 0 if exceeding the string length. If the end index is negative then it will end at the specified index counted from the end, or at the end of the string if exceeding the string length. End index <= start index will return the empty string. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
substringin interfaceGraphTraversal<S,E> - Parameters:
startIndex- the start index of the substring, inclusive.endIndex- the end index of the substring, exclusive.- Returns:
- the traversal with an appended
SubstringGlobalStep. - See Also:
-
substring
Description copied from interface:GraphTraversalReturns a substring of the incoming string traverser with a 0-based start index (inclusive) and end index (exclusive). If the start index is negative then it will begin at the specified index counted from the end of the string, or 0 if exceeding the string length. If the end index is negative then it will end at the specified index counted from the end, or at the end of the string if exceeding the string length. End index <= start index will return the empty string. Null values are not processed and remain as null when returned. If the incoming traverser is a non-String value then anIllegalArgumentExceptionwill be thrown.- Specified by:
substringin interfaceGraphTraversal<S,E> - Parameters:
scope- local will operate on individual strings within incoming lists, global will operate on current traversal as a single object.startIndex- the start index of the substring, inclusive.endIndex- the end index of the substring, exclusive.- Returns:
- the traversal with an appended
SubstringGlobalSteporSubstringLocalStepdepending on theScope. - See Also:
-
format
Description copied from interface:GraphTraversalA mid-traversal step which will handle result formatting to string values.- Specified by:
formatin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
FormatStep. - See Also:
-
asBool
Description copied from interface:GraphTraversalParse the incoming traverser as a boolean value.- Specified by:
asBoolin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
AsBoolStep. - See Also:
-
asDate
Description copied from interface:GraphTraversalParse value of the incoming traverser as an ISO-8601OffsetDateTime.- Specified by:
asDatein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
AsDateStep. - See Also:
-
asNumber
Description copied from interface:GraphTraversalParse value of the incoming traverser as aNumber.- Specified by:
asNumberin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
AsNumberStep. - See Also:
-
asNumber
Description copied from interface:GraphTraversalParse value of the incoming traverser as aNumber.- Specified by:
asNumberin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
AsNumberStep. - See Also:
-
dateAdd
Description copied from interface:GraphTraversalIncrease value of inputOffsetDateTime.- Specified by:
dateAddin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DateAddStep. - See Also:
-
dateDiff
Description copied from interface:GraphTraversalReturns the difference between twoOffsetDateTimein epoch time.- Specified by:
dateDiffin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DateDiffStep. - See Also:
-
dateDiff
Description copied from interface:GraphTraversalReturns the difference between twoOffsetDateTimein epoch time.- Specified by:
dateDiffin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DateDiffStep. - See Also:
-
dateDiff
Description copied from interface:GraphTraversalReturns the difference between two dates in epoch time.- Specified by:
dateDiffin interfaceGraphTraversal<S,E> - Parameters:
dateTraversal- a traversal that supplies aOffsetDateTimeobject (Dateis also accepted for compatibility).- Returns:
- the traversal with an appended
DateDiffStep. - See Also:
-
difference
Description copied from interface:GraphTraversalCalculates the difference between the list traverser and list argument.- Specified by:
differencein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DifferenceStep. - See Also:
-
disjunct
Description copied from interface:GraphTraversalCalculates the disjunction between the list traverser and list argument.- Specified by:
disjunctin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DisjunctStep. - See Also:
-
intersect
Description copied from interface:GraphTraversalCalculates the intersection between the list traverser and list argument.- Specified by:
intersectin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
IntersectStep. - See Also:
-
conjoin
Description copied from interface:GraphTraversalJoins together the elements of the incoming list traverser together with the provided delimiter.- Specified by:
conjoinin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ConjoinStep. - See Also:
-
merge
Description copied from interface:GraphTraversalMerges the list traverser and list argument. Also known as union.- Specified by:
mergein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
MergeStep. - See Also:
-
combine
Description copied from interface:GraphTraversalCombines the list traverser and list argument. Also known as concatenation or append.- Specified by:
combinein interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
CombineStep. - See Also:
-
product
Description copied from interface:GraphTraversalCalculates the cartesian product between the list traverser and list argument.- Specified by:
productin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
ProductStep. - See Also:
-
filter
Description copied from interface:GraphTraversalMap theTraverserto eithertrueorfalse, wherefalsewill not pass the traverser to the next step.- Specified by:
filterin interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter function to apply- Returns:
- the traversal with the
LambdaFilterStepadded - See Also:
-
filter
Description copied from interface:GraphTraversalMap theTraverserto eithertrueorfalse, wherefalsewill not pass the traverser to the next step.- Specified by:
filterin interfaceGraphTraversal<S,E> - Parameters:
filterTraversal- the filter traversal to apply- Returns:
- the traversal with the
TraversalFilterStepadded - See Also:
-
discard
Description copied from interface:TraversalFilter all traversers in the traversal. Formerly namednone()prior to 3.8.0. -
or
Description copied from interface:GraphTraversalEnsures that at least one of the provided traversals yield a result.- Specified by:
orin interfaceGraphTraversal<S,E> - Parameters:
orTraversals- filter traversals where at least one must be satisfied- Returns:
- the traversal with an appended
OrStep - See Also:
-
and
Description copied from interface:GraphTraversalEnsures that all of the provided traversals yield a result.- Specified by:
andin interfaceGraphTraversal<S,E> - Parameters:
andTraversals- filter traversals that must be satisfied- Returns:
- the traversal with an appended
AndStep - See Also:
-
inject
Description copied from interface:GraphTraversalProvides a way to add arbitrary objects to a traversal stream.- Specified by:
injectin interfaceGraphTraversal<S,E> - Parameters:
injections- the objects to add to the stream- Returns:
- the traversal with an appended
InjectStep - See Also:
-
dedup
Description copied from interface:GraphTraversalRemove all duplicates in the traversal stream up to this point.- Specified by:
dedupin interfaceGraphTraversal<S,E> - Parameters:
scope- whether the deduplication is on the stream (global) or the current object (local).dedupLabels- if labels are provided, then the scope labels determine de-duplication. No labels implies current object.- Returns:
- the traversal with an appended
DedupGlobalSteporDedupLocalStepdepending onscope - See Also:
-
dedup
Description copied from interface:GraphTraversalRemove all duplicates in the traversal stream up to this point.- Specified by:
dedupin interfaceGraphTraversal<S,E> - Parameters:
dedupLabels- if labels are provided, then the scoped object's labels determine de-duplication. No labels implies current object.- Returns:
- the traversal with an appended
DedupGlobalStep. - See Also:
-
where
Description copied from interface:GraphTraversalFilters the current object based on the object itself or the path history.- Specified by:
wherein interfaceGraphTraversal<S,E> - Parameters:
startKey- the key containing the object to filterpredicate- the filter to apply- Returns:
- the traversal with an appended
WherePredicateStep - See Also:
-
where
Description copied from interface:GraphTraversalFilters the current object based on the object itself or the path history.- Specified by:
wherein interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter to apply- Returns:
- the traversal with an appended
WherePredicateStep - See Also:
-
where
Description copied from interface:GraphTraversalFilters the current object based on the object itself or the path history.- Specified by:
wherein interfaceGraphTraversal<S,E> - Parameters:
whereTraversal- the filter to apply- Returns:
- the traversal with an appended
WherePredicateStep - See Also:
-
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties.- Specified by:
hasin interfaceGraphTraversal<S,E> - Parameters:
propertyKey- the key of the property to filter onpredicate- the filter to apply to the key's value- Returns:
- the traversal with an appended
HasStep - See Also:
-
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties.- Specified by:
hasin interfaceGraphTraversal<S,E> - Parameters:
propertyKey- the key of the property to filter onvalue- the value to compare the property value to for equality- Returns:
- the traversal with an appended
HasStep - See Also:
-
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties using a child traversal whose results are resolved at runtime against the current traverser. The resolved results are used withP.within()semantics for comparison against the named property.- Specified by:
hasin interfaceGraphTraversal<S,E> - Parameters:
propertyKey- the key of the property to filter ontraversal- the child traversal whose results are used as the filter value- Returns:
- the traversal with an appended
HasStep - See Also:
-
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties using a child traversal whose results are resolved at runtime against the current traverser. The resolved results are used withP.within()semantics for comparison against the T-accessor value (id or label). -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their label and a property value resolved from a child traversal at runtime. The label is matched first, then the child traversal results are used withP.within()semantics for comparison against the named property. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on the existence of properties.- Specified by:
hasin interfaceGraphTraversal<S,E> - Parameters:
propertyKey- the key of the property to filter on for existence- Returns:
- the traversal with an appended
HasStep - See Also:
-
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
has
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their properties. -
hasNot
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on the non-existence of properties.- Specified by:
hasNotin interfaceGraphTraversal<S,E> - Parameters:
propertyKey- the key of the property to filter on for existence- Returns:
- the traversal with an appended
HasStep - See Also:
-
hasLabel
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their label. -
hasLabel
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their label. Note that calling this step withnullis the same as callingGraphTraversal.hasLabel(String, String...)with a singlenull. -
hasLabel
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their label using a child traversal whose results are resolved at runtime against the current traverser.- Specified by:
hasLabelin interfaceGraphTraversal<S,E> - Parameters:
traversal- the child traversal whose results are used as the label filter value- Returns:
- the traversal with an appended
HasStep - See Also:
-
hasLabel
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their label. -
hasId
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their identifier. -
hasId
Description copied from interface:GraphTraversalFilters vertices, edges and vertex properties based on their identifier. Calling this step with anullvalue will result in effectively callingGraphTraversal.hasId(Object, Object...)wit a singlenullidentifier and therefore filter all results since aT.idcannot benull. -
hasKey
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their key. It is not meant to test key existence on anEdgeor aVertex. In that case, preferGraphTraversal.has(String). -
hasKey
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their key. It is not meant to test key existence on anEdgeor aVertex. In that case, preferGraphTraversal.has(String). Note that calling this step withnullis the same as callingGraphTraversal.hasKey(String, String...)with a singlenull. -
hasKey
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their key using a child traversal whose results are resolved at runtime against the current traverser.- Specified by:
hasKeyin interfaceGraphTraversal<S,E> - Parameters:
traversal- the child traversal whose results are used as the key filter value- Returns:
- the traversal with an appended
HasStep - See Also:
-
hasValue
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their value. -
hasValue
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their value.Note that calling this step withnullis the same as callingGraphTraversal.hasValue(Object, Object...)with a singlenull. -
hasValue
Description copied from interface:GraphTraversalFiltersPropertyobjects based on their value using a child traversal whose results are resolved at runtime against the current traverser.- Specified by:
hasValuein interfaceGraphTraversal<S,E> - Parameters:
traversal- the child traversal whose results are used as the value filter- Returns:
- the traversal with an appended
HasStep - See Also:
-
is
Description copied from interface:GraphTraversalFiltersEobject values given the providedpredicate.- Specified by:
isin interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter to apply- Returns:
- the traversal with an appended
IsStep - See Also:
-
is
Description copied from interface:GraphTraversalFilter theEobject if it is notP.eq(V)to the provided value.- Specified by:
isin interfaceGraphTraversal<S,E> - Parameters:
value- the value that the object must equal.- Returns:
- the traversal with an appended
IsStep. - See Also:
-
not
Description copied from interface:GraphTraversalRemoves objects from the traversal stream when the traversal provided as an argument returns any objects.- Specified by:
notin interfaceGraphTraversal<S,E> - Parameters:
notTraversal- the traversal to filter by.- Returns:
- the traversal with an appended
NotStep. - See Also:
-
coin
Description copied from interface:GraphTraversalFilter theEobject given a biased coin toss.- Specified by:
coinin interfaceGraphTraversal<S,E> - Parameters:
probability- the probability that the object will pass through- Returns:
- the traversal with an appended
CoinStep. - See Also:
-
coin
Description copied from interface:GraphTraversalFilter theEobject given a biased coin toss. For internal use for parameterization features.- Specified by:
coinin interfaceGraphTraversal<S,E> - Parameters:
probability- the probability that the object will pass through the filter- Returns:
- the traversal with an appended
CoinStep. - See Also:
-
range
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream. Those before the value oflowdo not pass through and those that exceed the value ofhighwill end the iteration.- Specified by:
rangein interfaceGraphTraversal<S,E> - Parameters:
low- the number at which to start allowing objects through the streamhigh- the number at which to end the stream - use-1to emit all remaining objects- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
range
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream. Those before the value oflowdo not pass through and those that exceed the value ofhighwill end the iteration.- Specified by:
rangein interfaceGraphTraversal<S,E> - Parameters:
low- the number at which to start allowing objects through the streamhigh- the number at which to end the stream - use-1to emit all remaining objects- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
range
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream as constrained by theScope. Those before the value oflowdo not pass through and those that exceed the value ofhighwill end the iteration.- Specified by:
rangein interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply therangelow- the number at which to start allowing objects through the streamhigh- the number at which to end the stream - use-1to emit all remaining objects- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
range
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream as constrained by theScope. Those before the value oflowdo not pass through and those that exceed the value ofhighwill end the iteration.- Specified by:
rangein interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply therangelow- the number at which to start allowing objects through the streamhigh- the number at which to end the stream - use-1to emit all remaining objects- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
limit
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream, where only the firstnobjects are allowed as defined by thelimitargument.- Specified by:
limitin interfaceGraphTraversal<S,E> - Parameters:
limit- the number at which to end the stream- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
limit
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream, where only the firstnobjects are allowed as defined by thelimitargument.- Specified by:
limitin interfaceGraphTraversal<S,E> - Parameters:
limit- the number at which to end the stream- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
limit
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream given theScope, where only the firstnobjects are allowed as defined by thelimitargument.- Specified by:
limitin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thelimitlimit- the number at which to end the stream- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
limit
Description copied from interface:GraphTraversalFilter the objects in the traversal by the number of them to pass through the stream given theScope, where only the firstnobjects are allowed as defined by thelimitargument.- Specified by:
limitin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thelimitlimit- the number at which to end the stream- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream. In this case, only the last object will be returned.- Specified by:
tailin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
TailGlobalStep - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream. In this case, only the lastnobjects will be returned as defined by thelimit.- Specified by:
tailin interfaceGraphTraversal<S,E> - Parameters:
limit- the number at which to end the stream- Returns:
- the traversal with an appended
TailGlobalStep - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream. In this case, only the lastnobjects will be returned as defined by thelimit.- Specified by:
tailin interfaceGraphTraversal<S,E> - Parameters:
limit- the number at which to end the stream- Returns:
- the traversal with an appended
TailGlobalStep - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream given theScope. In this case, only the last object in the stream will be returned.- Specified by:
tailin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thetail- Returns:
- the traversal with an appended
TailGlobalSteporTailLocalStepdepending onscope - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream given theScope. In this case, only the lastnobjects will be returned as defined by thelimit.- Specified by:
tailin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thetaillimit- the number at which to end the stream- Returns:
- the traversal with an appended
TailGlobalSteporTailLocalStepdepending onscope - See Also:
-
tail
Description copied from interface:GraphTraversalFilters the objects in the traversal emitted as being last objects in the stream given theScope. In this case, only the lastnobjects will be returned as defined by thelimit.- Specified by:
tailin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thetaillimit- the number at which to end the stream- Returns:
- the traversal with an appended
TailGlobalSteporTailLocalStepdepending onscope - See Also:
-
skip
Description copied from interface:GraphTraversalFilters out the firstnobjects in the traversal.- Specified by:
skipin interfaceGraphTraversal<S,E> - Parameters:
skip- the number of objects to skip- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
skip
Description copied from interface:GraphTraversalFilters out the firstnobjects in the traversal.- Specified by:
skipin interfaceGraphTraversal<S,E> - Parameters:
skip- the number of objects to skip- Returns:
- the traversal with an appended
RangeGlobalStep - See Also:
-
skip
Description copied from interface:GraphTraversalFilters out the firstnobjects in the traversal.- Specified by:
skipin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thetailskip- the number of objects to skip- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
skip
Description copied from interface:GraphTraversalFilters out the firstnobjects in the traversal.- Specified by:
skipin interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thetailskip- the number of objects to skip- Returns:
- the traversal with an appended
RangeGlobalSteporRangeLocalStepdepending onscope - See Also:
-
timeLimit
Description copied from interface:GraphTraversalOnce the firstTraverserhits this step, a count down is started. Once the time limit is up, all remaining traversers are filtered out.- Specified by:
timeLimitin interfaceGraphTraversal<S,E> - Parameters:
timeLimit- the count down time- Returns:
- the traversal with an appended
TimeLimitStep - See Also:
-
simplePath
Description copied from interface:GraphTraversal- Specified by:
simplePathin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
PathFilterStep. - See Also:
-
cyclicPath
Description copied from interface:GraphTraversal- Specified by:
cyclicPathin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
PathFilterStep. - See Also:
-
sample
Description copied from interface:GraphTraversalAllow some specified number of objects to pass through the stream.- Specified by:
samplein interfaceGraphTraversal<S,E> - Parameters:
amountToSample- the number of objects to allow- Returns:
- the traversal with an appended
SampleGlobalStep - See Also:
-
sample
Description copied from interface:GraphTraversalAllow some specified number of objects to pass through the stream.- Specified by:
samplein interfaceGraphTraversal<S,E> - Parameters:
scope- the scope of how to apply thesampleamountToSample- the number of objects to allow- Returns:
- the traversal with an appended
SampleGlobalSteporSampleLocalStepdepending on thescope - See Also:
-
drop
Description copied from interface:GraphTraversalRemoves elements and properties from the graph. This step is not a terminating, in the sense that it does not automatically iterate the traversal. It is therefore necessary to do some form of iteration for the removal to actually take place. In most cases, iteration is best accomplished withg.V().drop().iterate().- Specified by:
dropin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the
DropStepadded - See Also:
-
addLabel
Description copied from interface:GraphTraversalAdds labels to the current element. This is a side-effect step that passes the element through unchanged.- Specified by:
addLabelin interfaceGraphTraversal<S,E> - Parameters:
label- the first label to addmoreLabels- additional labels to add- Returns:
- the traversal with an appended
AddLabelStep
-
addLabel
default CredentialTraversal<S,E> addLabel(Traversal<?, ?> labelTraversal, Traversal<?, ?>... moreLabelTraversals) Description copied from interface:GraphTraversalAdds labels to the current element. This is a side-effect step that passes the element through unchanged.- Specified by:
addLabelin interfaceGraphTraversal<S,E> - Parameters:
labelTraversal- the first (or only) label traversalmoreLabelTraversals- additional label traversals (may be empty for single-traversal behavior)- Returns:
- the traversal with an appended
AddLabelStep
-
dropLabels
Description copied from interface:GraphTraversalRemoves all labels from the current element, triggering the provider's default label behavior. This is a side-effect step that passes the element through unchanged.- Specified by:
dropLabelsin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
DropLabelsStep
-
dropLabel
Description copied from interface:GraphTraversalRemoves labels from the current element. This is a side-effect step that passes the element through unchanged.- Specified by:
dropLabelin interfaceGraphTraversal<S,E> - Parameters:
label- the first label to removemoreLabels- additional labels to remove- Returns:
- the traversal with an appended
DropLabelsStep
-
dropLabel
default CredentialTraversal<S,E> dropLabel(Traversal<?, String> labelTraversal, Traversal<?, String>... moreLabelTraversals) Description copied from interface:GraphTraversalRemoves labels from the current element. This is a side-effect step that passes the element through unchanged.- Specified by:
dropLabelin interfaceGraphTraversal<S,E> - Parameters:
labelTraversal- the first (or only) label traversalmoreLabelTraversals- additional label traversals (may be empty for single-traversal behavior)- Returns:
- the traversal with an appended
DropLabelsStep
-
all
Description copied from interface:GraphTraversalFiltersElists given the providedpredicate.- Specified by:
allin interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter to apply- Returns:
- the traversal with an appended
AllStep - See Also:
-
any
Description copied from interface:GraphTraversalFiltersElists given the providedpredicate.- Specified by:
anyin interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter to apply- Returns:
- the traversal with an appended
AnyStep - See Also:
-
none
Description copied from interface:GraphTraversalFiltersElists given the providedpredicate.- Specified by:
nonein interfaceGraphTraversal<S,E> - Parameters:
predicate- the filter to apply- Returns:
- the traversal with an appended
NoneStep - See Also:
-
sideEffect
Description copied from interface:GraphTraversalPerform some operation on theTraverserand pass it to the next step unmodified.- Specified by:
sideEffectin interfaceGraphTraversal<S,E> - Parameters:
consumer- the operation to perform at this step in relation to theTraverser- Returns:
- the traversal with an appended
LambdaSideEffectStep - See Also:
-
sideEffect
Description copied from interface:GraphTraversalPerform some operation on theTraverserand pass it to the next step unmodified.- Specified by:
sideEffectin interfaceGraphTraversal<S,E> - Parameters:
sideEffectTraversal- the operation to perform at this step in relation to theTraverser- Returns:
- the traversal with an appended
TraversalSideEffectStep - See Also:
-
cap
Description copied from interface:GraphTraversalIterates the traversal up to the itself and emits the side-effect referenced by the key. If multiple keys are supplied then the side-effects are emitted as aMap.- Specified by:
capin interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the side-effect to emitsideEffectKeys- other side-effects to emit- Returns:
- the traversal with an appended
SideEffectCapStep - See Also:
-
subgraph
Description copied from interface:GraphTraversalExtracts a portion of the graph being traversed into aGraphobject held in the specified side-effect key.- Specified by:
subgraphin interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key that will hold the subgraph- Returns:
- the traversal with an appended
SubgraphStep - See Also:
-
aggregate
Description copied from interface:GraphTraversalEagerly collects objects up to this step into a side-effect.- Specified by:
aggregatein interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key that will hold the aggregated objects- Returns:
- the traversal with an appended
AggregateStep - See Also:
-
group
Description copied from interface:GraphTraversalOrganize objects in the stream into aMap. Calls togroup()are typically accompanied withGraphTraversal.by()modulators which help specify how the grouping should occur.- Specified by:
groupin interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key that will hold the aggregated grouping- Returns:
- the traversal with an appended
GroupStep. - See Also:
-
groupCount
Description copied from interface:GraphTraversalCounts the number of times a particular objects has been part of a traversal, returning aMapwhere the object is the key and the value is the count.- Specified by:
groupCountin interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key that will hold the aggregated grouping- Returns:
- the traversal with an appended
GroupCountStep. - See Also:
-
fail
Description copied from interface:GraphTraversalWhen triggered, immediately throws aRuntimeExceptionwhich implements theFailureinterface. The traversal will be terminated as a result.- Specified by:
failin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
FailStep. - See Also:
-
fail
Description copied from interface:GraphTraversalWhen triggered, immediately throws aRuntimeExceptionwhich implements theFailureinterface. The traversal will be terminated as a result.- Specified by:
failin interfaceGraphTraversal<S,E> - Parameters:
message- the error message to include in the exception- Returns:
- the traversal with an appended
FailStep. - See Also:
-
tree
Description copied from interface:GraphTraversalAggregates the emanating paths into aTreedata structure.- Specified by:
treein interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key that will hold the tree- Returns:
- the traversal with an appended
TreeStep - See Also:
-
sack
Description copied from interface:GraphTraversalMap theTraverserto itsTraverser.sack()value.- Specified by:
sackin interfaceGraphTraversal<S,E> - Parameters:
sackOperator- the operator to apply to the sack value- Returns:
- the traversal with an appended
SackStep. - See Also:
-
profile
Description copied from interface:GraphTraversalAllows developers to examine statistical information about a traversal providing data like execution times, counts, etc.- Specified by:
profilein interfaceGraphTraversal<S,E> - Parameters:
sideEffectKey- the name of the side-effect key within which to hold the profile object- Returns:
- the traversal with an appended
ProfileSideEffectStep - See Also:
-
profile
Description copied from interface:TraversalProfile the traversal.- Specified by:
profilein interfaceGraphTraversal<S,E> - Specified by:
profilein interfaceTraversal<S,E> - Returns:
- the updated traversal with respective
ProfileSideEffectStep. - See Also:
-
property
default CredentialTraversal<S,E> property(VertexProperty.Cardinality cardinality, Object key, Object value, Object... keyValues) Description copied from interface:GraphTraversalSets aPropertyvalue and related meta properties if supplied, if supported by theGraphand if theElementis aVertexProperty. This method is the long-hand version ofGraphTraversal.property(Object, Object, Object...)with the difference that theVertexProperty.Cardinalitycan be supplied. * Generally speaking, this method will append anAddPropertyStepContractto theTraversalbut when possible, this method will attempt to fold key/value pairs into anAddVertexStepContractorAddEdgeStepContract. This potential optimization can only happen if cardinality is not supplied and when meta-properties are not included.- Specified by:
propertyin interfaceGraphTraversal<S,E> - Parameters:
cardinality- the specified cardinality of the property wherenullwill allow theGraphto use its default settingskey- the key for the propertyvalue- the value for the property which may not be null if thekeyis of typeTkeyValues- any meta properties to be assigned to this property- Returns:
- the traversal with the last step modified to add a property
- See Also:
-
property
Description copied from interface:GraphTraversalSets the key and value of aProperty. If theElementis aVertexPropertyand theGraphsupports it, meta properties can be set. Use of this method assumes that theVertexProperty.Cardinalityis defaulted tonullwhich means that the default cardinality for theGraphwill be used. If aMapis supplied then each of the key/value pairs in the map will be added as property. This method is the long-hand version of looping through theGraphTraversal.property(Object, Object, Object...)method for each key/value pair supplied. If aCardinalityValueTraversalis specified as a value then it will override anyVertexProperty.Cardinalityspecified for thekey. This method is effectively callsGraphTraversal.property(VertexProperty.Cardinality, Object, Object, Object...)asproperty(null, key, value, keyValues.- Specified by:
propertyin interfaceGraphTraversal<S,E> - Parameters:
key- the key for the propertyvalue- the value for the propertykeyValues- any meta properties to be assigned to this property- Returns:
- the traversal with the last step modified to add a property
- See Also:
-
property
Description copied from interface:GraphTraversalWhen aMapis supplied then each of the key/value pairs in the map will be added as property. This method is the long-hand version of looping through theGraphTraversal.property(Object, Object, Object...)method for each key/value pair supplied. A value may use aCardinalityValueTraversalto allow specification of theVertexProperty.Cardinalityalong with the property value itself. If aMapis not supplied then an exception is thrown. This method is effectively callsGraphTraversal.property(VertexProperty.Cardinality, Object, Object, Object...)asproperty(null, key, value, keyValues.- Specified by:
propertyin interfaceGraphTraversal<S,E> - Parameters:
value- the value for the property- Returns:
- the traversal with the last step modified to add a property
- See Also:
-
property
Description copied from interface:GraphTraversalSets properties on the current element using a child traversal that produces aMap. Each entry in the resulting Map becomes a property (key → value) on the element. The traversal is evaluated at execution time against the current traverser.- Specified by:
propertyin interfaceGraphTraversal<S,E> - Parameters:
mapTraversal- a traversal that produces aMap<String, Object>of property key/value pairs- Returns:
- the traversal with the
AddPropertyStepPlaceholderadded - See Also:
-
branch
Description copied from interface:GraphTraversalSplit theTraverserto all the specified traversals.- Specified by:
branchin interfaceGraphTraversal<S,E> - Parameters:
branchTraversal- the traversal to branch theTraverserto- Returns:
- the
Traversalwith theBranchStepadded - See Also:
-
branch
Description copied from interface:GraphTraversalSplit theTraverserto all the specified functions.- Specified by:
branchin interfaceGraphTraversal<S,E> - Parameters:
function- the traversal to branch theTraverserto- Returns:
- the
Traversalwith theBranchStepadded - See Also:
-
choose
Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal. Achooseis modified byGraphTraversal.option(M, org.apache.tinkerpop.gremlin.process.traversal.Traversal<?, E2>)which provides the various branch choices.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choiceTraversal- the traversal used to determine the value for the branch- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
default <E2> CredentialTraversal<S,E2> choose(Traversal<?, ?> traversalPredicate, Traversal<?, E2> trueChoice, Traversal<?, E2> falseChoice) Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
traversalPredicate- the traversal used to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns truefalseChoice- the traversal to execute in the event thetraversalPredicatereturns false- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
default <E2> CredentialTraversal<S,E2> choose(Traversal<?, ?> traversalPredicate, Traversal<?, E2> trueChoice) Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
traversalPredicate- the traversal used to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns true- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal. Achooseis modified byGraphTraversal.option(M, org.apache.tinkerpop.gremlin.process.traversal.Traversal<?, E2>)which provides the various branch choices.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
t- extracts this value from an incoming element to match against an option- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal. Achooseis modified byGraphTraversal.option(M, org.apache.tinkerpop.gremlin.process.traversal.Traversal<?, E2>)which provides the various branch choices.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choiceFunction- the function used to determine the value for the branch- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
default <E2> CredentialTraversal<S,E2> choose(Predicate<E> choosePredicate, Traversal<?, E2> trueChoice, Traversal<?, E2> falseChoice) Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choosePredicate- the function used to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns truefalseChoice- the traversal to execute in the event thetraversalPredicatereturns false- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
default <E2> CredentialTraversal<S,E2> choose(P<E> choosePredicate, Traversal<?, E2> trueChoice, Traversal<?, E2> falseChoice) Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then-else like semantics within a traversal.Note: Traversal-bearing predicates (e.g.
P.gt(__.V(1).values("age"))) are not supported inchoose()and will throw anIllegalArgumentException.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choosePredicate- thePused to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns truefalseChoice- the traversal to execute in the event thetraversalPredicatereturns false- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
default <E2> CredentialTraversal<S,E2> choose(Predicate<E> choosePredicate, Traversal<?, E2> trueChoice) Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choosePredicate- the function used to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns true- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
choose
Description copied from interface:GraphTraversalRoutes the current traverser to a particular traversal branch option which allows the creation of if-then like semantics within a traversal.Note: Traversal-bearing predicates (e.g.
P.gt(__.V(1).values("age"))) are not supported inchoose()and will throw anIllegalArgumentException.- Specified by:
choosein interfaceGraphTraversal<S,E> - Parameters:
choosePredicate- thePused to determine the "if" portion of the if-then-elsetrueChoice- the traversal to execute in the event thetraversalPredicatereturns true- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
optional
Description copied from interface:GraphTraversalReturns the result of the specified traversal if it yields a result, otherwise it returns the calling element.- Specified by:
optionalin interfaceGraphTraversal<S,E> - Parameters:
optionalTraversal- the traversal to execute for a potential result- Returns:
- the traversal with the appended
ChooseStep - See Also:
-
union
Description copied from interface:GraphTraversalMerges the results of an arbitrary number of traversals.- Specified by:
unionin interfaceGraphTraversal<S,E> - Parameters:
unionTraversals- the traversals to merge- Returns:
- the traversal with the appended
UnionStep - See Also:
-
coalesce
Description copied from interface:GraphTraversalEvaluates the provided traversals and returns the result of the first traversal to emit at least one object.- Specified by:
coalescein interfaceGraphTraversal<S,E> - Parameters:
coalesceTraversals- the traversals to coalesce- Returns:
- the traversal with the appended
CoalesceStep - See Also:
-
repeat
Description copied from interface:GraphTraversalThis step is used for looping over a traversal given some break predicate.- Specified by:
repeatin interfaceGraphTraversal<S,E> - Parameters:
repeatTraversal- the traversal to repeat over- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
repeat
Description copied from interface:GraphTraversalThis step is used for looping over a traversal given some break predicate and with a specified loop name.- Specified by:
repeatin interfaceGraphTraversal<S,E> - Parameters:
loopName- The name given to the looprepeatTraversal- the traversal to repeat over- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
emit
Description copied from interface:GraphTraversalEmit is used in conjunction withGraphTraversal.repeat(Traversal)to determine what objects get emit from the loop.- Specified by:
emitin interfaceGraphTraversal<S,E> - Parameters:
emitTraversal- the emit predicate defined as a traversal- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
emit
Description copied from interface:GraphTraversalEmit is used in conjunction withGraphTraversal.repeat(Traversal)to determine what objects get emit from the loop.- Specified by:
emitin interfaceGraphTraversal<S,E> - Parameters:
emitPredicate- the emit predicate- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
emit
Description copied from interface:GraphTraversalEmit is used in conjunction withGraphTraversal.repeat(Traversal)to emit all objects from the loop.- Specified by:
emitin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
RepeatStep - See Also:
-
until
Description copied from interface:GraphTraversalModifies aGraphTraversal.repeat(Traversal)to determine when the loop should exit.- Specified by:
untilin interfaceGraphTraversal<S,E> - Parameters:
untilTraversal- the traversal that determines when the loop exits- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
until
Description copied from interface:GraphTraversalModifies aGraphTraversal.repeat(Traversal)to determine when the loop should exit.- Specified by:
untilin interfaceGraphTraversal<S,E> - Parameters:
untilPredicate- the predicate that determines when the loop exits- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
times
Description copied from interface:GraphTraversalModifies aGraphTraversal.repeat(Traversal)to specify how many loops should occur before exiting.- Specified by:
timesin interfaceGraphTraversal<S,E> - Parameters:
maxLoops- the number of loops to execute prior to exiting- Returns:
- the traversal with the appended
RepeatStep - See Also:
-
local
Description copied from interface:GraphTraversalProvides a execute a specified traversal on a single element within a stream.- Specified by:
localin interfaceGraphTraversal<S,E> - Parameters:
localTraversal- the traversal to execute locally- Returns:
- the traversal with the appended
LocalStep - See Also:
-
pageRank
Description copied from interface:GraphTraversalCalculates a PageRank over the graph using a 0.85 for thealphavalue.- Specified by:
pageRankin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
PageRankVertexProgramStep - See Also:
-
pageRank
Description copied from interface:GraphTraversalCalculates a PageRank over the graph.- Specified by:
pageRankin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
PageRankVertexProgramStep - See Also:
-
peerPressure
Description copied from interface:GraphTraversalExecutes a Peer Pressure community detection algorithm over the graph.- Specified by:
peerPressurein interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
PeerPressureVertexProgramStep - See Also:
-
connectedComponent
Description copied from interface:GraphTraversalExecutes a Connected Component algorithm over the graph.- Specified by:
connectedComponentin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
ConnectedComponentVertexProgram - See Also:
-
shortestPath
Description copied from interface:GraphTraversalExecutes a Shortest Path algorithm over the graph.- Specified by:
shortestPathin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
ShortestPathVertexProgramStep - See Also:
-
program
Description copied from interface:GraphTraversalExecutes an arbitraryVertexProgramover the graph.- Specified by:
programin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the appended
ProgramVertexProgramStep - See Also:
-
as
Description copied from interface:GraphTraversalA step modulator that provides a label to the step that can be accessed later in the traversal by other steps.- Specified by:
asin interfaceGraphTraversal<S,E> - Parameters:
stepLabel- the name of the stepstepLabels- additional names for the label- Returns:
- the traversal with the modified end step
- See Also:
-
barrier
Description copied from interface:GraphTraversalTurns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier. In this case, it iterates the entire thing as the default barrier size is set toInteger.MAX_VALUE.- Specified by:
barrierin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
NoOpBarrierStep - See Also:
-
barrier
Description copied from interface:GraphTraversalTurns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier.- Specified by:
barrierin interfaceGraphTraversal<S,E> - Parameters:
maxBarrierSize- the size of the barrier- Returns:
- the traversal with an appended
NoOpBarrierStep - See Also:
-
index
Description copied from interface:GraphTraversalIndexes all items of the current collection. The indexing format can be configured using theGraphTraversal.with(String, Object)andWithOptions.indexer. Indexed as list: ["a","b","c"] => [["a",0],["b",1],["c",2]] Indexed as map: ["a","b","c"] => {0:"a",1:"b",2:"c"} If the current object is not a collection, this step will map the object to a single item collection/map: Indexed as list: "a" => ["a",0] Indexed as map: "a" => {0:"a"}- Specified by:
indexin interfaceGraphTraversal<S,E> - Returns:
- the traversal with an appended
IndexStep - See Also:
-
barrier
Description copied from interface:GraphTraversalTurns the lazy traversal pipeline into a bulk-synchronous pipeline which basically iterates that traversal to the size of the barrier. In this case, it iterates the entire thing as the default barrier size is set toInteger.MAX_VALUE.- Specified by:
barrierin interfaceGraphTraversal<S,E> - Parameters:
barrierConsumer- a consumer function that is applied to the objects aggregated to the barrier- Returns:
- the traversal with an appended
NoOpBarrierStep - See Also:
-
with
Description copied from interface:GraphTraversalProvides a configuration to a step in the form of a key which is the same aswith(key, true). The key of the configuration must be step specific and therefore a configuration could be supplied that is not known to be valid until execution.- Specified by:
within interfaceGraphTraversal<S,E> - Parameters:
key- the key of the configuration to apply to a step- Returns:
- the traversal with a modulated step
- See Also:
-
with
Description copied from interface:GraphTraversalProvides a configuration to a step in the form of a key and value pair. The key of the configuration must be step specific and therefore a configuration could be supplied that is not known to be valid until execution.- Specified by:
within interfaceGraphTraversal<S,E> - Parameters:
key- the key of the configuration to apply to a stepvalue- the value of the configuration to apply to a step- Returns:
- the traversal with a modulated step
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. This form is essentially anGraphTraversal.identity()modulation.- Specified by:
byin interfaceGraphTraversal<S,E> - Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified traversal.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
traversal- the traversal to apply- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified token ofT.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
token- the token to apply- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified key.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
key- the key to apply- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
function- the function to apply- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
traversal- the traversal to applycomparator- the comparator to apply typically for someGraphTraversal.order()- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
comparator- the comparator to apply typically for someGraphTraversal.order()- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
order- the comparator to apply typically for someGraphTraversal.order()- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
key- the key to apply traversalcomparator- the comparator to apply typically for someGraphTraversal.order()- Returns:
- the traversal with a modulated step.
- See Also:
-
by
Description copied from interface:GraphTraversalTheby()can be applied to a number of different step to alter their behaviors. Modifies the previous step with the specified function.- Specified by:
byin interfaceGraphTraversal<S,E> - Parameters:
function- the function to applycomparator- the comparator to apply typically for someGraphTraversal.order()- Returns:
- the traversal with a modulated step.
- See Also:
-
option
Description copied from interface:GraphTraversalThis is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step. Please see the documentation of such steps to understand the usage context.Note: When used with
choose(), traversal-bearing predicates are not supported as option tokens and will throw anIllegalArgumentException.- Specified by:
optionin interfaceGraphTraversal<S,E> - Parameters:
token- the token that would trigger this option which may be aPick,Merge, aTraversal,Predicate, or object depending on the step being modulated.traversalOption- the option as a traversal- Returns:
- the traversal with the modulated step
- See Also:
-
option
Description copied from interface:GraphTraversalThis is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step. Please see the documentation of such steps to understand the usage context.- Specified by:
optionin interfaceGraphTraversal<S,E> m- Provides aMapas the option which is the same as doingconstant(m).- Returns:
- the traversal with the modulated step
- See Also:
-
option
default <M,E2> CredentialTraversal<S,E> option(Merge merge, Map<Object, Object> m, VertexProperty.Cardinality cardinality) Description copied from interface:GraphTraversalThis is a step modulator toGraphTraversal.mergeV()where the provided argument associated to thetokenis applied according to the semantics of the step. Please see the documentation of such steps to understand the usage context.- Specified by:
optionin interfaceGraphTraversal<S,E> m- Provides aMapas the option which is the same as doingconstant(m).- Returns:
- the traversal with the modulated step
- See Also:
-
option
Description copied from interface:GraphTraversalThis step modifiesGraphTraversal.choose(Function)to specifies the available choices that might be executed.- Specified by:
optionin interfaceGraphTraversal<S,E> - Parameters:
traversalOption- the option as a traversal- Returns:
- the traversal with the modulated step
- See Also:
-
option
Description copied from interface:GraphTraversalThis is a step modulator to aTraversalOptionParentlikechoose()ormergeV()where the provided argument associated to thetokenis applied according to the semantics of the step. Please see the documentation of such steps to understand the usage context.- Specified by:
optionin interfaceGraphTraversal<S,E> m- Provides aMapas the option which is the same as doingconstant(m).- Returns:
- the traversal with the modulated step
- See Also:
-
read
Description copied from interface:GraphTraversalThis step is technically a step modulator for the theGraphTraversalSource.io(String)step which instructs the step to perform a read with its given configuration.- Specified by:
readin interfaceGraphTraversal<S,E> - Returns:
- the traversal with the
IoStepmodulated to read - See Also:
-
write
Description copied from interface:GraphTraversalThis step is technically a step modulator for the theGraphTraversalSource.io(String)step which instructs the step to perform a write with its given configuration.- Specified by:
writein interfaceGraphTraversal<S,E> - Returns:
- the traversal with the
IoStepmodulated to write - See Also:
-
iterate
Description copied from interface:TraversalIterate all theTraverserinstances in the traversal. What is returned is the empty traversal. It is assumed that what is desired from the computation is are the sideEffects yielded by the traversal.
-