Class IsStepPlaceholder<S>
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep<S,S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep<S>
-
- org.apache.tinkerpop.gremlin.process.traversal.step.filter.IsStepPlaceholder<S>
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterator<Traverser.Admin<S>>,Step<S,S>,IsStepContract<S>,GValueHolder<S,S>
public final class IsStepPlaceholder<S> extends FilterStep<S> implements GValueHolder<S,S>, IsStepContract<S>
- 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.IsStepContract
CONCRETE_STEPS
-
-
Constructor Summary
Constructors Constructor Description IsStepPlaceholder(Traversal.Admin traversal, P<S> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsStep<S>asConcreteStep()IsStepPlaceholder<S>clone()Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.booleanequals(Object o)protected booleanfilter(Traverser.Admin<S> traverser)Collection<GValue<?>>getGValues()P<S>getPredicate()Retrieves the step's predicate.P<S>getPredicateGValueSafe()Set<TraverserRequirement>getRequirements()Provide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly.inthashCode()booleanisParameterized()voidupdateVariable(String name, Object value)-
Methods inherited from class org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep
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, getTraversal, hasStarts, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
-
-
-
-
Constructor Detail
-
IsStepPlaceholder
public IsStepPlaceholder(Traversal.Admin traversal, P<S> predicate)
-
-
Method Detail
-
filter
protected boolean filter(Traverser.Admin<S> traverser)
- Specified by:
filterin classFilterStep<S>
-
getPredicate
public P<S> getPredicate()
Description copied from interface:IsStepContractRetrieves the step's predicate.- Specified by:
getPredicatein interfaceIsStepContract<S>- Returns:
- the predicate associated with the step
-
getPredicateGValueSafe
public P<S> getPredicateGValueSafe()
- Specified by:
getPredicateGValueSafein interfaceIsStepContract<S>
-
clone
public IsStepPlaceholder<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>
-
getRequirements
public Set<TraverserRequirement> getRequirements()
Description copied from interface:StepProvide the necessaryTraverserRequirementthat must be met by the traverser in order for the step to function properly. The provided default implements returns an empty set.- Specified by:
getRequirementsin interfaceIsStepContract<S>- Specified by:
getRequirementsin interfaceStep<S,S>- Returns:
- the set of requirements
-
asConcreteStep
public IsStep<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>
-
-