public class PropertyMapStep<K,E> extends MapStep<Element,Map<K,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<K,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<K,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() |
processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild
forEachRemaining, remove
protected 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<K,E> map(Traverser.Admin<Element> traverser)
public List<Traversal.Admin<Element,? extends Property>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public void setPropertyTraversal(Traversal.Admin<Element,? extends Property> propertyTraversal)
public PropertyType getReturnType()
public String[] getPropertyKeys()
public boolean isIncludeTokens()
public PropertyMapStep<K,E> clone()
Step
EmptyStep
.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
Step
Traversal
that this step is contained within.setTraversal
in interface Step<Element,Map<K,E>>
setTraversal
in class AbstractStep<Element,Map<K,E>>
parentTraversal
- the new traversal for this steppublic Set<TraverserRequirement> getRequirements()
Step
TraverserRequirement
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–2018 Apache Software Foundation. All rights reserved.