public final class WhereStep<S> extends FilterStep<S> implements TraversalParent, Scoping
Modifier and Type | Field and Description |
---|---|
protected String |
endKey |
protected Set<String> |
endKeys |
protected boolean |
multiKeyedTraversal |
protected P<Object> |
predicate |
protected Scope |
scope |
protected String |
startKey |
protected Set<String> |
startKeys |
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdSetByChild
Constructor and Description |
---|
WhereStep(Traversal.Admin traversal,
Scope scope,
Optional<String> startKey,
P<?> predicate) |
WhereStep(Traversal.Admin traversal,
Scope scope,
P<?> predicate) |
Modifier and Type | Method and Description |
---|---|
WhereStep<S> |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
protected boolean |
filter(Traverser.Admin<S> traverser) |
List<Traversal.Admin<Object,Object>> |
getLocalChildren() |
Set<TraverserRequirement> |
getRequirements()
Provide the necessary
TraverserRequirement that must be met by the traverser in order for the step to function properly. |
int |
hashCode() |
Scope |
recommendNextScope() |
void |
setScope(Scope scope) |
String |
toString() |
processNextStart
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getTraversal, hasNext, next, reset, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
addGlobalChild, addLocalChild, asStep, getGlobalChildren, getSelfAndChildRequirements, integrateChild
forEachRemaining, remove
protected String startKey
protected String endKey
protected Scope scope
protected boolean multiKeyedTraversal
public WhereStep(Traversal.Admin traversal, Scope scope, Optional<String> startKey, P<?> predicate)
public WhereStep(Traversal.Admin traversal, Scope scope, P<?> predicate)
protected boolean filter(Traverser.Admin<S> traverser)
filter
in class FilterStep<S>
public List<Traversal.Admin<Object,Object>> getLocalChildren()
getLocalChildren
in interface TraversalParent
public String toString()
toString
in class AbstractStep<S,S>
public WhereStep<S> clone()
Step
EmptyStep
.public int hashCode()
hashCode
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 void setScope(Scope scope)
public Scope recommendNextScope()
recommendNextScope
in interface Scoping
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.