public abstract class ReducingBarrierStep<S,E> extends AbstractStep<S,E> implements MapReducer, EngineDependent
Modifier and Type | Class and Description |
---|---|
static class |
ReducingBarrierStep.DefaultMapReduce |
static interface |
ReducingBarrierStep.FinalGet<A> |
Modifier and Type | Field and Description |
---|---|
protected boolean |
byPass |
static String |
REDUCING |
protected BiFunction<E,Traverser<S>,E> |
reducingBiFunction |
protected Supplier<E> |
seedSupplier |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
Constructor and Description |
---|
ReducingBarrierStep(Traversal.Admin traversal) |
Modifier and Type | Method and Description |
---|---|
ReducingBarrierStep<S,E> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
MapReduce |
getMapReduce() |
void |
onEngine(TraversalEngine traversalEngine) |
Traverser<E> |
processNextStart() |
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setBiFunction(BiFunction<E,Traverser<S>,E> reducingBiFunction) |
void |
setSeedSupplier(Supplier<E> seedSupplier) |
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
equals, getRequirements
forEachRemaining, remove
public static final String REDUCING
protected BiFunction<E,Traverser<S>,E> reducingBiFunction
protected boolean byPass
public ReducingBarrierStep(Traversal.Admin traversal)
public void setBiFunction(BiFunction<E,Traverser<S>,E> reducingBiFunction)
public void onEngine(TraversalEngine traversalEngine)
onEngine
in interface EngineDependent
public void reset()
Step
public Traverser<E> processNextStart()
processNextStart
in class AbstractStep<S,E>
public ReducingBarrierStep<S,E> clone()
Step
EmptyStep
.public MapReduce getMapReduce()
getMapReduce
in interface MapReducer
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.