public class PropertiesStep<E> extends FlatMapStep<Element,E> implements AutoCloseable, Configuring
Modifier and Type | Field and Description |
---|---|
protected Parameters |
parameters |
protected String[] |
propertyKeys |
protected PropertyType |
returnType |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
PropertiesStep(Traversal.Admin traversal,
PropertyType propertyType,
String... propertyKeys) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(Object... keyValues)
Accept a configuration to the
Step . |
protected Iterator<E> |
flatMap(Traverser.Admin<Element> traverser) |
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() |
String |
toString() |
closeIterator, processNextStart, reset
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
protected Parameters parameters
protected final String[] propertyKeys
protected final PropertyType returnType
public PropertiesStep(Traversal.Admin traversal, PropertyType propertyType, String... propertyKeys)
public Parameters getParameters()
Parameterizing
getParameters
in interface Parameterizing
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
protected Iterator<E> flatMap(Traverser.Admin<Element> traverser)
flatMap
in class FlatMapStep<Element,E>
public PropertyType getReturnType()
public String[] getPropertyKeys()
public String toString()
toString
in class AbstractStep<Element,E>
public int hashCode()
hashCode
in class AbstractStep<Element,E>
public 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.getRequirements
in interface Step<Element,E>
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.