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:
-
Field Summary
FieldsFields inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChildFields inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.map.RangeLocalStepContract
CONCRETE_STEPS -
Constructor Summary
ConstructorsConstructorDescriptionRangeLocalStepPlaceholder(Traversal.Admin traversal, GValue<Long> low, GValue<Long> high) -
Method Summary
Modifier and TypeMethodDescriptionclone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanCollection<GValue<?>>Retrieves the higher bound of the range.getHighRange, retaining the GValue container and without pinning the variable.Retrieves the lower bound of the range.getLowRange, retaining the GValue container and without pinning the variable.inthashCode()booleanprotected Smap(Traverser.Admin<S> traverser) voidupdateVariable(String name, Object value) Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.map.ScalarMapStep
processNextStartMethods 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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.process.traversal.step.GValueHolder
reduceMethods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, removeMethods 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
-
Field Details
-
low
-
high
-
-
Constructor Details
-
RangeLocalStepPlaceholder
-
-
Method Details
-
isParameterized
public boolean isParameterized()- Specified by:
isParameterizedin interfaceGValueHolder<S,S>
-
updateVariable
- Specified by:
updateVariablein interfaceGValueHolder<S,S>
-
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
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
- Overrides:
equalsin classAbstractStep<S,S>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStep<S,S>
-
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
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
- Specified by:
mapin classScalarMapStep<S,S>
-
getGValues
- Specified by:
getGValuesin interfaceGValueHolder<S,S>
-
asConcreteStep
- Specified by:
asConcreteStepin interfaceGValueHolder<S,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.
-