public abstract class ScalarMapStep<S,E> extends MapStep<S,E>
MapStep
class which will transform the object of one Traverser
into another. This class
simply requires the implementation of the map(Traverser.Admin)
method to extract the object of the given
Traverser
and return the transformation of that object as E
.id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
ScalarMapStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
protected abstract E |
map(Traverser.Admin<S> traverser) |
protected Traverser.Admin<E> |
processNextStart() |
addLabel, addStart, addStarts, clone, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getRequirements
forEachRemaining, remove
public ScalarMapStep(Traversal.Admin traversal)
protected Traverser.Admin<E> processNextStart()
processNextStart
in class AbstractStep<S,E>
protected abstract E map(Traverser.Admin<S> traverser)
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.