public class PropertyMapStep<K,E> extends MapStep<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,
boolean includeTokens,
PropertyType propertyType,
String... propertyKeys)
Deprecated.
As of release 3.4.0, replaced by
PropertyMapStep(Traversal.Admin, PropertyType, String...). |
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() |
boolean |
isIncludeTokens()
Deprecated.
As of release 3.4.0, replaced by
getIncludedTokens(). |
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() |
processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, reset, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildmodulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateByforEachRemaining, removeprotected final String[] propertyKeys
protected final PropertyType returnType
protected int tokens
protected Traversal.Admin<Element,? extends Property> propertyTraversal
@Deprecated public PropertyMapStep(Traversal.Admin traversal, boolean includeTokens, PropertyType propertyType, String... propertyKeys)
PropertyMapStep(Traversal.Admin, PropertyType, String...).public PropertyMapStep(Traversal.Admin traversal, PropertyType propertyType, String... propertyKeys)
protected Map<K,E> map(Traverser.Admin<Element> traverser)
public void configure(Object... keyValues)
ConfiguringStep. 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 Configuringpublic Parameters getParameters()
ParameterizinggetParameters in interface Parameterizingpublic List<Traversal.Admin<K,E>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic void modulateBy(Traversal.Admin<?,?> selectTraversal)
modulateBy in interface ByModulatingpublic void setPropertyTraversal(Traversal.Admin<Element,? extends Property> propertyTraversal)
public PropertyType getReturnType()
public String[] getPropertyKeys()
@Deprecated public boolean isIncludeTokens()
getIncludedTokens().public PropertyMapStep<K,E> clone()
StepStep.reset() is called. Moreover, the previous and next steps should be set to EmptyStep.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal 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()
StepTraverserRequirement 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–2020 Apache Software Foundation. All rights reserved.