public final class AggregateStep<S> extends AbstractStep<S,S> implements SideEffectCapable<Collection,Collection>, TraversalParent, ByModulating, LocalBarrier<S>
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild| Constructor and Description | 
|---|
| AggregateStep(Traversal.Admin traversal,
             String sideEffectKey) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBarrier(TraverserSet<S> barrier)Add a barrier to the step. | 
| AggregateStep<S> | clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. | 
| List<Traversal.Admin<S,Object>> | getLocalChildren() | 
| Set<TraverserRequirement> | getRequirements()Provide the necessary  TraverserRequirementthat must be met by the traverser in order for the step to function properly. | 
| String | getSideEffectKey()The side-effect key of the step. | 
| int | hashCode() | 
| boolean | hasNextBarrier()Whether or not the step has an accessible barrier. | 
| void | modulateBy(Traversal.Admin<?,?> aggregateTraversal) | 
| TraverserSet<S> | nextBarrier()Get the next barrier within this step. | 
| void | processAllStarts()Process all left traversers by do not yield the resultant output. | 
| protected Traverser.Admin<S> | processNextStart() | 
| void | reset()Reset the state of the step such that it has no incoming starts. | 
| void | setTraversal(Traversal.Admin<?,?> parentTraversal)Set the  Traversalthat this step is contained within. | 
| String | toString() | 
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitgenerateFinalResultaddGlobalChild, addLocalChild, asStep, close, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildmodulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBygetMemoryComputeKeyforEachRemaining, removepublic AggregateStep(Traversal.Admin traversal, String sideEffectKey)
public String getSideEffectKey()
SideEffectCapablegetSideEffectKey in interface SideEffectCapable<Collection,Collection>public String toString()
toString in class AbstractStep<S,S>public void modulateBy(Traversal.Admin<?,?> aggregateTraversal)
modulateBy in interface ByModulatingpublic List<Traversal.Admin<S,Object>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic 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,S>public AggregateStep<S> clone()
StepEmptyStep.public void setTraversal(Traversal.Admin<?,?> parentTraversal)
StepTraversal that this step is contained within.setTraversal in interface Step<S,S>setTraversal in class AbstractStep<S,S>parentTraversal - the new traversal for this steppublic int hashCode()
hashCode in class AbstractStep<S,S>protected Traverser.Admin<S> processNextStart()
processNextStart in class AbstractStep<S,S>public void processAllStarts()
BarrierReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts in interface Barrier<TraverserSet<S>>public boolean hasNextBarrier()
BarrierhasNextBarrier in interface Barrier<TraverserSet<S>>public TraverserSet<S> nextBarrier() throws NoSuchElementException
BarriernextBarrier in interface Barrier<TraverserSet<S>>NoSuchElementExceptionpublic void addBarrier(TraverserSet<S> barrier)
BarrieraddBarrier in interface Barrier<TraverserSet<S>>barrier - the barrier to merge inpublic void reset()
StepCopyright © 2013–2019 Apache Software Foundation. All rights reserved.