Class TailGlobalStepPlaceholder<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.filter.TailGlobalStepPlaceholder<S>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<S>>,Step<S,S>,Barrier<TraverserSet<S>>,Bypassing,TailGlobalStepContract<S>,FilteringBarrier<TraverserSet<S>>,GValueHolder<S,S>,MemoryComputing<TraverserSet<S>>
public final class TailGlobalStepPlaceholder<S> extends AbstractStep<S,S> implements TailGlobalStepContract<S>, GValueHolder<S,S>
- Author:
- Matt Frantz (http://github.com/mhfrantz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
-
Fields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.filter.TailGlobalStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description TailGlobalStepPlaceholder(Traversal.Admin traversal, GValue<Long> limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Step<S,S>asConcreteStep()TailGlobalStepPlaceholder<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanequals(Object o)Collection<GValue<?>>getGValues()LonggetLimit()GValue<Long>getLimitAsGValue()MemoryComputeKey<TraverserSet<S>>getMemoryComputeKey()TheMemoryComputeKeythat will be used by this step.inthashCode()booleanisParameterized()voidprocessAllStarts()Process all left traversers by do not yield the resultant output.Traverser.Admin<S>processNextStart()voidsetBypass(boolean bypass)voidupdateVariable(String name, Object value)-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
addLabel, addStart, addStarts, clearLabels, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, hasStarts, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
reduce
-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.Step
addLabel, addStart, addStarts, clearLabels, equals, getId, getLabels, getNextStep, getPreviousStep, getRequirements, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
-
Methods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.filter.TailGlobalStepContract
addBarrier, getEmptyBarrier, getStarts, hasNextBarrier, nextBarrier
-
-
-
-
Constructor Detail
-
TailGlobalStepPlaceholder
public TailGlobalStepPlaceholder(Traversal.Admin traversal, GValue<Long> limit)
-
-
Method Detail
-
processNextStart
public Traverser.Admin<S> processNextStart()
- Specified by:
processNextStartin classAbstractStep<S,S>
-
clone
public TailGlobalStepPlaceholder<S> clone()
Description copied from interface:StepCloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication. When cloning a step, it is important that the steps, the cloned step is equivalent to the state of the step whenStep.reset()is called. Moreover, the previous and next steps should be set toEmptyStep.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractStep<S,S>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractStep<S,S>
-
getLimit
public Long getLimit()
- Specified by:
getLimitin interfaceTailGlobalStepContract<S>
-
getLimitAsGValue
public GValue<Long> getLimitAsGValue()
- Specified by:
getLimitAsGValuein interfaceTailGlobalStepContract<S>
-
getMemoryComputeKey
public MemoryComputeKey<TraverserSet<S>> getMemoryComputeKey()
Description copied from interface:MemoryComputingTheMemoryComputeKeythat will be used by this step.- Specified by:
getMemoryComputeKeyin interfaceMemoryComputing<S>- Returns:
- the MemoryComputeKey to use
-
processAllStarts
public void processAllStarts()
Description copied from interface:BarrierProcess all left traversers by do not yield the resultant output. This method is useful for steps likeReducingBarrierStep, where traversers can be processed "on the fly" and thus, reduce memory consumption.- Specified by:
processAllStartsin interfaceBarrier<S>
-
asConcreteStep
public Step<S,S> asConcreteStep()
- Specified by:
asConcreteStepin interfaceGValueHolder<S,S>
-
isParameterized
public boolean isParameterized()
- Specified by:
isParameterizedin interfaceGValueHolder<S,S>
-
updateVariable
public void updateVariable(String name, Object value)
- Specified by:
updateVariablein interfaceGValueHolder<S,S>
-
getGValues
public Collection<GValue<?>> getGValues()
- Specified by:
getGValuesin interfaceGValueHolder<S,S>
-
-