Class ValueTraversal<T,V>
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversal<T,V>
- 
- org.apache.tinkerpop.gremlin.process.traversal.lambda.ValueTraversal<T,V>
 
 
- 
- All Implemented Interfaces:
- Serializable,- AutoCloseable,- Cloneable,- Iterator<V>,- Traversal<T,V>,- Traversal.Admin<T,V>
 
 public final class ValueTraversal<T,V> extends AbstractLambdaTraversal<T,V> More efficiently extracts a value from anElementorMapto avoid strategy application costs.- Author:
- Marko A. Rodriguez (http://markorodriguez.com), Stephen Mallette (http://stephen.genoprime.com)
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalTraversal.Admin<S,E>, Traversal.Exceptions, Traversal.Symbols
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversalbypassTraversal
 
- 
 - 
Constructor SummaryConstructors Constructor Description ValueTraversal(String propertyKey)Creates an instance for the specifiedpropertyKey.ValueTraversal(String propertyKey, Traversal.Admin<T,V> bypassTraversal)Creates an instance with thebypassTraversalset on construction.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStart(Traverser.Admin<T> start)Add a singleTraverser.Adminobject to the head of the traversal.booleanequals(Object other)StringgetPropertyKey()VgetValue()inthashCode()booleanhasNext()If there is a "start" traverser this method will returntrueand otherwisefalseand in either case will always return as such, irrespective of calls tonext().booleanisNoStarts()Determines if there is a value to iterate from theTraversal.Vnext()Return thevalueof the traverser and will continue to return it on subsequent calls.voidreset()Call theStep.reset()method on every step in the traversal.StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.lambda.AbstractLambdaTraversaladdStep, applyStrategies, clone, getBypassTraversal, getBytecode, getGraph, getParent, getSideEffects, getSteps, getStrategies, getTraverserGenerator, getTraverserRequirements, isLocked, isRoot, lock, nextTraverser, removeStep, setBypassTraversal, setGraph, setParent, setSideEffects, setStrategies
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.TraversalasAdmin, close, explain, fill, forEachRemaining, forEachRemaining, iterate, next, none, notifyClose, profile, promise, toBulkSet, toList, toSet, toStream, tryNext
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Traversal.AdminaddStarts, addStep, equals, getEndStep, getStartStep, getTraversalSource, getTraverserSetSupplier, removeStep
 
- 
 
- 
- 
- 
Constructor Detail- 
ValueTraversalpublic ValueTraversal(String propertyKey) Creates an instance for the specifiedpropertyKey.
 - 
ValueTraversalpublic ValueTraversal(String propertyKey, Traversal.Admin<T,V> bypassTraversal) Creates an instance with thebypassTraversalset on construction.
 
- 
 - 
Method Detail- 
getValuepublic V getValue() 
 - 
isNoStartspublic boolean isNoStarts() Determines if there is a value to iterate from theTraversal.
 - 
nextpublic V next() Return thevalueof the traverser and will continue to return it on subsequent calls. Calling methods should account for this behavior on their own.
 - 
hasNextpublic boolean hasNext() If there is a "start" traverser this method will returntrueand otherwisefalseand in either case will always return as such, irrespective of calls tonext(). Calling methods should account for this behavior on their own.
 - 
addStartpublic void addStart(Traverser.Admin<T> start) Description copied from interface:Traversal.AdminAdd a singleTraverser.Adminobject to the head of the traversal. Users should typically not need to call this method. For dynamic inject of data, they should useInjectStep.- Specified by:
- addStartin interface- Traversal.Admin<T,V>
- Overrides:
- addStartin class- AbstractLambdaTraversal<T,V>
- Parameters:
- start- a traverser to add to the traversal
 
 - 
getPropertyKeypublic String getPropertyKey() 
 - 
resetpublic void reset() Description copied from interface:Traversal.AdminCall theStep.reset()method on every step in the traversal.- Specified by:
- resetin interface- Traversal.Admin<T,V>
- Overrides:
- resetin class- AbstractLambdaTraversal<T,V>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractLambdaTraversal<T,V>
 
 - 
equalspublic boolean equals(Object other) - Overrides:
- equalsin class- AbstractLambdaTraversal<T,V>
 
 
- 
 
-