Class RangeLocalStepPlaceholder<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.MapStep<S,E>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep<S,S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.map.RangeLocalStepPlaceholder<S>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<S>>,Step<S,S>,GValueHolder<S,S>,RangeLocalStepContract<S>,Ranging
public class RangeLocalStepPlaceholder<S> extends ScalarMapStep<S,S> implements RangeLocalStepContract<S>, GValueHolder<S,S>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GValue<Long>highprotected GValue<Long>low-
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.map.RangeLocalStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description RangeLocalStepPlaceholder(Traversal.Admin traversal, GValue<Long> low, GValue<Long> high)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeLocalStep<S>asConcreteStep()RangeLocalStepPlaceholder<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanequals(Object o)Collection<GValue<?>>getGValues()LonggetHighRange()Retrieves the higher bound of the range.GValue<Long>getHighRangeAsGValue()getHighRange, retaining the GValue container and without pinning the variable.LonggetLowRange()Retrieves the lower bound of the range.GValue<Long>getLowRangeAsGValue()getLowRange, retaining the GValue container and without pinning the variable.inthashCode()booleanisParameterized()protected Smap(Traverser.Admin<S> traverser)voidupdateVariable(String name, Object value)-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep
processNextStart
-
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
-
-
-
-
Constructor Detail
-
RangeLocalStepPlaceholder
public RangeLocalStepPlaceholder(Traversal.Admin traversal, GValue<Long> low, GValue<Long> high)
-
-
Method Detail
-
isParameterized
public boolean isParameterized()
- Specified by:
isParameterizedin interfaceGValueHolder<S,S>
-
updateVariable
public void updateVariable(String name, Object value)
- Specified by:
updateVariablein interfaceGValueHolder<S,S>
-
getLowRange
public Long getLowRange()
Description copied from interface:RangeLocalStepContractRetrieves the lower bound of the range.- Specified by:
getLowRangein interfaceRangeLocalStepContract<S>- Specified by:
getLowRangein interfaceRanging- Returns:
- the value representing the lower bound of the range
-
getHighRange
public Long getHighRange()
Description copied from interface:RangeLocalStepContractRetrieves the higher bound of the range.- Specified by:
getHighRangein interfaceRangeLocalStepContract<S>- Specified by:
getHighRangein interfaceRanging- Returns:
- the higher bound of the range as an object of type V
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractStep<S,S>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractStep<S,S>
-
getLowRangeAsGValue
public GValue<Long> getLowRangeAsGValue()
getLowRange, retaining the GValue container and without pinning the variable. It is the caller's responsibility to ensure that this value is not used to alter the traversal in any way which is not generalizable to any parameter value.- Specified by:
getLowRangeAsGValuein interfaceRangeLocalStepContract<S>- Returns:
- the lower bound for range().
-
getHighRangeAsGValue
public GValue<Long> getHighRangeAsGValue()
getHighRange, retaining the GValue container and without pinning the variable. It is the caller's responsibility to ensure that this value is not used to alter the traversal in any way which is not generalizable to any parameter value.- Specified by:
getHighRangeAsGValuein interfaceRangeLocalStepContract<S>- Returns:
- the upper bound for range().
-
map
protected S map(Traverser.Admin<S> traverser)
- Specified by:
mapin classScalarMapStep<S,S>
-
getGValues
public Collection<GValue<?>> getGValues()
- Specified by:
getGValuesin interfaceGValueHolder<S,S>
-
asConcreteStep
public RangeLocalStep<S> asConcreteStep()
- Specified by:
asConcreteStepin interfaceGValueHolder<S,S>
-
clone
public RangeLocalStepPlaceholder<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.
-
-