public class PropertyMapStep<E> extends MapStep<Element,Map<String,E>> implements TraversalParent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
includeTokens |
protected String[] |
propertyKeys |
protected Traversal.Admin<Element,? extends Property> |
propertyTraversal |
protected PropertyType |
returnType |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description |
|---|
PropertyMapStep(Traversal.Admin traversal,
boolean includeTokens,
PropertyType propertyType,
String... propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
PropertyMapStep<E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
List<Traversal.Admin<Element,? extends Property>> |
getLocalChildren() |
String[] |
getPropertyKeys() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
PropertyType |
getReturnType() |
int |
hashCode() |
boolean |
isIncludeTokens() |
protected Map<String,E> |
map(Traverser.Admin<Element> traverser) |
void |
setPropertyTraversal(Traversal.Admin<Element,? extends Property> propertyTraversal) |
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildforEachRemaining, removeprotected final String[] propertyKeys
protected final PropertyType returnType
protected final boolean includeTokens
protected Traversal.Admin<Element,? extends Property> propertyTraversal
public PropertyMapStep(Traversal.Admin traversal, boolean includeTokens, PropertyType propertyType, String... propertyKeys)
protected Map<String,E> map(Traverser.Admin<Element> traverser)
public List<Traversal.Admin<Element,? extends Property>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic void setPropertyTraversal(Traversal.Admin<Element,? extends Property> propertyTraversal)
public PropertyType getReturnType()
public String[] getPropertyKeys()
public boolean isIncludeTokens()
public PropertyMapStep<E> clone()
StepEmptyStep.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<Element,Map<String,E>>setTraversal in class AbstractStep<Element,Map<String,E>>parentTraversal - the new traversal for this steppublic Set<TraverserRequirement> getRequirements()
StepTraverserRequirement that must be met by the traverser in order for the step to function properly.
The provided default implements returns an empty set.Copyright © 2013–2016 Apache Software Foundation. All rights reserved.