public abstract class SupplyingBarrierStep<S,E> extends AbstractStep<S,E> implements Barrier<Boolean>
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description | 
|---|
| SupplyingBarrierStep(Traversal.Admin traversal) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBarrier(Boolean barrier)Add a barrier to the step. | 
| void | addStart(Traverser.Admin<S> start)Add a single  Traverser.Adminto the step. | 
| void | addStarts(Iterator<Traverser.Admin<S>> starts)Add a iterator of  Traverser.Adminobjects of type S to the step. | 
| SupplyingBarrierStep<S,E> | clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. | 
| void | done()A way to hard set that the barrier is complete. | 
| MemoryComputeKey<Boolean> | getMemoryComputeKey()The  MemoryComputeKeythat will be used by this step. | 
| boolean | hasNextBarrier()Whether or not the step has an accessible barrier. | 
| Boolean | nextBarrier()Get the next barrier within this step. | 
| void | processAllStarts()Process all left traversers by do not yield the resultant output. | 
| Traverser.Admin<E> | processNextStart() | 
| void | reset()Reset the state of the step such that it has no incoming starts. | 
| protected abstract E | supply() | 
addLabel, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hashCode, hasNext, next, removeLabel, setId, setNextStep, setPreviousStep, setTraversal, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitequals, getRequirementsforEachRemaining, removepublic SupplyingBarrierStep(Traversal.Admin traversal)
protected abstract E supply()
public void addStarts(Iterator<Traverser.Admin<S>> starts)
StepTraverser.Admin objects of type S to the step.public void addStart(Traverser.Admin<S> start)
StepTraverser.Admin to the step.public void reset()
Steppublic Traverser.Admin<E> processNextStart()
processNextStart in class AbstractStep<S,E>public SupplyingBarrierStep<S,E> clone()
StepEmptyStep.public void processAllStarts()
BarrierReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts in interface Barrier<Boolean>public boolean hasNextBarrier()
BarrierhasNextBarrier in interface Barrier<Boolean>public Boolean nextBarrier() throws NoSuchElementException
BarriernextBarrier in interface Barrier<Boolean>NoSuchElementExceptionpublic void addBarrier(Boolean barrier)
BarrieraddBarrier in interface Barrier<Boolean>barrier - the barrier to merge inpublic void done()
Barrierpublic MemoryComputeKey<Boolean> getMemoryComputeKey()
MemoryComputingMemoryComputeKey that will be used by this step.getMemoryComputeKey in interface MemoryComputing<Boolean>Copyright © 2013–2019 Apache Software Foundation. All rights reserved.