id, label, nextEnd, nextStep, previousStep, PROFILING_ENABLED, starts, traversal, traverserStepIdSetByChild| Constructor and Description |
|---|
FoldStep(Traversal traversal) |
FoldStep(Traversal traversal,
java.util.function.Supplier<E> seed,
java.util.function.BiFunction<E,S,E> foldFunction) |
| Modifier and Type | Method and Description |
|---|---|
FoldStep<S,E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
static <S,E> void |
generateFunction(FoldStep<S,E> foldStep) |
org.javatuples.Pair<java.util.function.Supplier<E>,java.util.function.BiFunction<E,S,E>> |
getReducer() |
java.util.Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
processNextStart, setFunctionaddStart, addStarts, getId, getLabel, getNextStep, getPreviousStep, getTraversal, hasNext, next, reset, setId, setLabel, setNextStep, setPreviousStep, setTraversal, toStringpublic FoldStep(Traversal traversal)
public org.javatuples.Pair<java.util.function.Supplier<E>,java.util.function.BiFunction<E,S,E>> getReducer()
getReducer in interface Reducing<E,S>public FoldStep<S,E> clone() throws java.lang.CloneNotSupportedException
StepEmptyStep.public java.util.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.getRequirements in interface Step<S,E>getRequirements in class MapStep<S,E>public static <S,E> void generateFunction(FoldStep<S,E> foldStep)
Copyright © 2013-2015 TinkerPop. All Rights Reserved.