public final class DedupGlobalStep<S> extends FilterStep<S> implements TraversalParent, Scoping, GraphComputing, Barrier<Map<Object,Traverser.Admin<S>>>, ByModulating, PathProcessor
Scoping.VariablePathProcessor.ElementRequirementid, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChildTYPICAL_GLOBAL_REQUIREMENTS, TYPICAL_GLOBAL_REQUIREMENTS_ARRAY, TYPICAL_LOCAL_REQUIREMENTS, TYPICAL_LOCAL_REQUIREMENTS_ARRAY| Constructor and Description |
|---|
DedupGlobalStep(Traversal.Admin traversal,
String... dedupLabels) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBarrier(Map<Object,Traverser.Admin<S>> barrier)
Add a barrier to the step.
|
DedupGlobalStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
protected boolean |
filter(Traverser.Admin<S> traverser) |
List<Traversal<S,Object>> |
getLocalChildren() |
PathProcessor.ElementRequirement |
getMaxRequirement() |
MemoryComputeKey<Map<Object,Traverser.Admin<S>>> |
getMemoryComputeKey()
The
MemoryComputeKey that will be used by this step. |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
Set<String> |
getScopeKeys() |
int |
hashCode() |
boolean |
hasNextBarrier()
Whether or not the step has an accessible barrier.
|
void |
modulateBy(Traversal.Admin<?,?> dedupTraversal) |
Map<Object,Traverser.Admin<S>> |
nextBarrier()
Get the next barrier within this step.
|
void |
onGraphComputer()
The step will be executing on a
GraphComputer. |
void |
processAllStarts()
Process all left traversers by do not yield the resultant output.
|
void |
reset()
Reset the state of the step such that it has no incoming starts.
|
void |
setTraversal(Traversal.Admin<?,?> parentTraversal)
Set the
Traversal that this step is contained within. |
String |
toString() |
processNextStartaddLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, removeLabel, setId, setNextStep, setPreviousStepfinalize, getClass, notify, notifyAll, wait, wait, waitaddGlobalChild, addLocalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild, removeGlobalChild, removeLocalChildgetNullableScopeValue, getScopeValuemodulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateBy, modulateByforEachRemaining, removepublic DedupGlobalStep(Traversal.Admin traversal, String... dedupLabels)
protected boolean filter(Traverser.Admin<S> traverser)
filter in class FilterStep<S>public PathProcessor.ElementRequirement getMaxRequirement()
getMaxRequirement in interface PathProcessorpublic List<Traversal<S,Object>> getLocalChildren()
getLocalChildren in interface TraversalParentpublic void modulateBy(Traversal.Admin<?,?> dedupTraversal)
modulateBy in interface ByModulatingpublic DedupGlobalStep<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>public void reset()
Steppublic String toString()
toString in class AbstractStep<S,S>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.getRequirements in interface Step<S,S>public void onGraphComputer()
GraphComputingGraphComputer.onGraphComputer in interface GraphComputingpublic Set<String> getScopeKeys()
getScopeKeys in interface Scopingpublic void processAllStarts()
BarrierReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts in interface Barrier<Map<Object,Traverser.Admin<S>>>public boolean hasNextBarrier()
BarrierhasNextBarrier in interface Barrier<Map<Object,Traverser.Admin<S>>>public Map<Object,Traverser.Admin<S>> nextBarrier() throws NoSuchElementException
BarriernextBarrier in interface Barrier<Map<Object,Traverser.Admin<S>>>NoSuchElementExceptionpublic void addBarrier(Map<Object,Traverser.Admin<S>> barrier)
BarrieraddBarrier in interface Barrier<Map<Object,Traverser.Admin<S>>>barrier - the barrier to merge inpublic MemoryComputeKey<Map<Object,Traverser.Admin<S>>> getMemoryComputeKey()
MemoryComputingMemoryComputeKey that will be used by this step.getMemoryComputeKey in interface MemoryComputing<Map<Object,Traverser.Admin<S>>>Copyright © 2013–2016 Apache Software Foundation. All rights reserved.