public final class FoldStep<S,E> extends ReducingBarrierStep<S,E>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | FoldStep.FoldBiOperator<E> | 
ReducingBarrierStep.NonEmittingSeedhasProcessedOnce, NON_EMITTING_SEED, reducingBiOperator, 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. | 
| boolean | isListFold() | 
| E | projectTraverser(Traverser.Admin<S> traverser) | 
addBarrier, clone, done, generateSeedFromStarts, getBiOperator, getMemoryComputeKey, getSeedSupplier, hasNextBarrier, nextBarrier, processAllStarts, processNextStart, reset, setReducingBiOperator, setSeedSupplieraddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hashCode, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgenerateFinalResultforEachRemaining, removepublic FoldStep(Traversal.Admin traversal)
public FoldStep(Traversal.Admin traversal, Supplier<E> seed, BiFunction<E,S,E> foldFunction)
public E projectTraverser(Traverser.Admin<S> traverser)
projectTraverser in class ReducingBarrierStep<S,E>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.public boolean isListFold()
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.