public final class FoldStep<S,E> extends ReducingBarrierStep<S,E>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FoldStep.FoldBiFunction<S,E> | 
ReducingBarrierStep.DefaultMapReducebyPass, REDUCING, reducingBiFunction, seedSupplierid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| 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  TraverserRequirementthat must be met by the traverser in order for the step to function properly. | 
clone, getMapReduce, onEngine, processAllStarts, processNextStart, reset, setBiFunction, setSeedSupplieraddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hashCode, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEachRemaining, removepublic FoldStep(Traversal.Admin traversal)
public FoldStep(Traversal.Admin traversal, Supplier<E> seed, BiFunction<E,S,E> foldFunction)
public 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.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.