public final class FoldStep<S,E> extends ReducingBarrierStep<S,E>
Modifier and Type | Class and Description |
---|---|
static class |
FoldStep.FoldBiFunction<S,E> |
ReducingBarrierStep.DefaultMapReduce, ReducingBarrierStep.FinalGet<A>
byPass, REDUCING, reducingBiFunction, seedSupplier
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
Constructor and Description |
---|
FoldStep(Traversal.Admin traversal) |
FoldStep(Traversal.Admin traversal,
Supplier<E> seed,
BiFunction<E,S,E> foldFunction) |
Modifier and Type | Method and Description |
---|---|
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
clone, getMapReduce, onEngine, processNextStart, reset, setBiFunction, setSeedSupplier
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hashCode, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
public FoldStep(Traversal.Admin traversal)
public FoldStep(Traversal.Admin traversal, Supplier<E> seed, BiFunction<E,S,E> foldFunction)
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.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.