public class PropertyMapStep<K,E> extends ScalarMapStep<Element,Map<K,E>> implements TraversalParent, ByModulating, Configuring
| Modifier and Type | Field and Description |
|---|---|
protected Parameters |
parameters |
protected String[] |
propertyKeys |
protected Traversal.Admin<Element,? extends Property> |
propertyTraversal |
protected PropertyType |
returnType |
protected int |
tokens |
protected TraversalRing<K,E> |
traversalRing |
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) |
PropertyMapStep(Traversal.Admin traversal,
PropertyType propertyType,
TraversalRing<K,E> traversalRing,
String... propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addElementProperties(Traverser.Admin<Element> traverser,
Map<Object,Object> map) |
protected void |
addIncludedOptions(Element element,
Map<Object,Object> map) |
protected void |
applyTraversalRingToMap(Map<Object,Object> map) |
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. |
protected Object |
getElementId(Element element) |
protected String |
getElementLabel(Element element) |
int |
getIncludedTokens() |
List<Traversal.Admin<K,E>> |
getLocalChildren() |
Parameters |
getParameters()
Gets the parameters on the step.
|
String[] |
getPropertyKeys() |
Traversal.Admin<Element,? extends Property> |
getPropertyTraversal() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to
function properly. |
PropertyType |
getReturnType() |
TraversalRing<K,E> |
getTraversalRing() |
protected String |
getVertexPropertyKey(VertexProperty<?> vertexProperty) |
protected Object |
getVertexPropertyValue(VertexProperty<?> vertexProperty) |
int |
hashCode() |
protected boolean |
includeToken(int token) |
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, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChild, replaceLocalChildmodulateBy, 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
protected Parameters parameters
protected TraversalRing<K,E> traversalRing
public PropertyMapStep(Traversal.Admin traversal, PropertyType propertyType, TraversalRing<K,E> traversalRing, String... propertyKeys)
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)
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()
public Traversal.Admin<Element,? extends Property> getPropertyTraversal()
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()
protected boolean includeToken(int token)
protected String getVertexPropertyKey(VertexProperty<?> vertexProperty)
protected Object getVertexPropertyValue(VertexProperty<?> vertexProperty)
protected void addElementProperties(Traverser.Admin<Element> traverser, Map<Object,Object> map)
public TraversalRing<K,E> getTraversalRing()
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.