Class ElementMapStep<K,E>
- java.lang.Object
 - 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
 - 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep<S,E>
 - 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep<Element,Map<K,E>>
 - 
- org.apache.tinkerpop.gremlin.process.traversal.step.map.ElementMapStep<K,E>
 
 
 
 
 
- 
- All Implemented Interfaces:
 Serializable,AutoCloseable,Cloneable,Iterator<Traverser.Admin<Map<K,E>>>,Step<Element,Map<K,E>>,GraphComputing,PopContaining,TraversalParent
public class ElementMapStep<K,E> extends ScalarMapStep<Element,Map<K,E>> implements TraversalParent, GraphComputing
Converts aElementto aMap.- Author:
 - Marko A. Rodriguez (http://markorodriguez.com), Daniel Kuppitz (http://gremlin.guru), 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.step.PopContaining
PopContaining.PopInstruction 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description protected String[]propertyKeys- 
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ElementMapStep(Traversal.Admin traversal, String... propertyKeys) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getPropertyKeys()Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.protected Map<Object,Object>getVertexStructure(Vertex v)inthashCode()booleanisOnGraphComputer()protected Map<K,E>map(Traverser.Admin<Element> traverser)voidonGraphComputer()The step will be executing on aGraphComputer.StringtoString()- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep
processNextStart 
- 
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal 
- 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GraphComputing
atMaster 
- 
Methods inherited from interface java.util.Iterator
forEachRemaining, remove 
- 
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.TraversalParent
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getLocalChildren, getPopInstructions, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild 
 - 
 
 - 
 
- 
- 
Field Detail
- 
propertyKeys
protected final String[] propertyKeys
 
 - 
 
- 
Constructor Detail
- 
ElementMapStep
public ElementMapStep(Traversal.Admin traversal, String... propertyKeys)
 
 - 
 
- 
Method Detail
- 
map
protected Map<K,E> map(Traverser.Admin<Element> traverser)
 
- 
onGraphComputer
public void onGraphComputer()
Description copied from interface:GraphComputingThe step will be executing on aGraphComputer.- Specified by:
 onGraphComputerin interfaceGraphComputing
 
- 
isOnGraphComputer
public boolean isOnGraphComputer()
 
- 
getPropertyKeys
public String[] getPropertyKeys()
 
- 
getRequirements
public Set<TraverserRequirement> getRequirements()
Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
 getRequirementsin interfaceStep<K,E>- Returns:
 - the set of requirements
 
 
 - 
 
 -