public final class RangeGlobalStep<S> extends FilterStep<S> implements Ranging, Bypassing, Barrier<TraverserSet<S>>
Modifier and Type | Class and Description |
---|---|
static class |
RangeGlobalStep.RangeBiOperator<S> |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
RangeGlobalStep(Traversal.Admin traversal,
long low,
long high) |
Modifier and Type | Method and Description |
---|---|
void |
addBarrier(TraverserSet<S> barrier)
Add a barrier to the step.
|
RangeGlobalStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
boolean |
equals(Object other) |
protected boolean |
filter(Traverser.Admin<S> traverser) |
long |
getHighRange() |
long |
getLowRange() |
MemoryComputeKey<TraverserSet<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. |
int |
hashCode() |
boolean |
hasNextBarrier()
Whether or not the step has an accessible barrier.
|
TraverserSet<S> |
nextBarrier()
Get the next barrier within this step.
|
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 |
setBypass(boolean bypass) |
String |
toString() |
processNextStart
addLabel, addStart, addStarts, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
forEachRemaining, remove
public RangeGlobalStep(Traversal.Admin traversal, long low, long high)
protected boolean filter(Traverser.Admin<S> traverser)
filter
in class FilterStep<S>
public void reset()
Step
public String toString()
toString
in class AbstractStep<S,S>
public long getLowRange()
getLowRange
in interface Ranging
public long getHighRange()
getHighRange
in interface Ranging
public RangeGlobalStep<S> clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.public int hashCode()
hashCode
in class AbstractStep<S,S>
public boolean equals(Object other)
equals
in class AbstractStep<S,S>
public Set<TraverserRequirement> getRequirements()
Step
TraverserRequirement
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 MemoryComputeKey<TraverserSet<S>> getMemoryComputeKey()
MemoryComputing
MemoryComputeKey
that will be used by this step.getMemoryComputeKey
in interface MemoryComputing<TraverserSet<S>>
public void processAllStarts()
Barrier
ReducingBarrierStep
, where traversers can be processed "on the fly" and thus, reduce memory consumption.processAllStarts
in interface Barrier<TraverserSet<S>>
public boolean hasNextBarrier()
Barrier
hasNextBarrier
in interface Barrier<TraverserSet<S>>
public TraverserSet<S> nextBarrier() throws NoSuchElementException
Barrier
nextBarrier
in interface Barrier<TraverserSet<S>>
NoSuchElementException
public void addBarrier(TraverserSet<S> barrier)
Barrier
addBarrier
in interface Barrier<TraverserSet<S>>
barrier
- the barrier to merge inCopyright © 2013–2022 Apache Software Foundation. All rights reserved.