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() |
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<String,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<E> clone()
Step
EmptyStep
.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
Step
Traversal
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()
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–2017 Apache Software Foundation. All rights reserved.