public class PropertyMapStep<K,E> extends ScalarMapStep<Element,Map<K,E>> implements TraversalParent, ByModulating, Configuring
Modifier and Type | Field and Description |
---|---|
protected String[] |
propertyKeys |
protected Traversal.Admin<Element,? extends Property> |
propertyTraversal |
protected PropertyType |
returnType |
protected int |
tokens |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
PropertyMapStep(Traversal.Admin traversal,
int options,
PropertyType propertyType,
String... propertyKeys) |
PropertyMapStep(Traversal.Admin traversal,
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.
|
void |
configure(Object... keyValues)
Accept a configuration to the
Step . |
int |
getIncludedTokens() |
List<Traversal.Admin<K,E>> |
getLocalChildren() |
Parameters |
getParameters()
Gets the parameters on the step.
|
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() |
protected Map<K,E> |
map(Traverser.Admin<Element> traverser) |
void |
modulateBy(Traversal.Admin<?,?> selectTraversal) |
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, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChild
modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy
forEachRemaining, remove
protected final String[] propertyKeys
protected final PropertyType returnType
protected int tokens
protected Traversal.Admin<Element,? extends Property> propertyTraversal
public PropertyMapStep(Traversal.Admin traversal, PropertyType propertyType, String... propertyKeys)
public PropertyMapStep(Traversal.Admin traversal, int options, PropertyType propertyType, String... propertyKeys)
protected Map<K,E> map(Traverser.Admin<Element> traverser)
public void configure(Object... keyValues)
Configuring
Step
. Note that this interface extends Parameterizing
and so
there is an expectation that the Step
implementation will have a Parameters
instance that will
house any values passed to this method. Storing these configurations in Parameters
is not a requirement
however, IF the configuration is an expected option for the step and can be stored on a member field that can
be accessed on the step by more direct means (i.e. like a getter method).configure
in interface Configuring
public Parameters getParameters()
Parameterizing
getParameters
in interface Parameterizing
public List<Traversal.Admin<K,E>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public void modulateBy(Traversal.Admin<?,?> selectTraversal)
modulateBy
in interface ByModulating
public void setPropertyTraversal(Traversal.Admin<Element,? extends Property> propertyTraversal)
public PropertyType getReturnType()
public String[] getPropertyKeys()
public PropertyMapStep<K,E> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to 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.public int getIncludedTokens()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.