public class LevelSelectorOrderer extends AbstractSelectorOrderer<Pair<AtomicInteger,TraversalBranch[]>>
Constructor and Description |
---|
LevelSelectorOrderer(BranchSelector startSelector,
BranchSelector endSelector,
boolean stopDescentOnResult,
int maxDepth) |
Modifier and Type | Method and Description |
---|---|
protected Pair<AtomicInteger,TraversalBranch[]> |
initialState() |
TraversalBranch |
next(TraversalContext metadata)
Decides the next position ("where to go from here") from the current
position, based on the
rules . |
currentSide, getStateForCurrentSelector, nextBranchFromCurrentSelector, nextBranchFromNextSelector, nextSelector, setStateForCurrentSelector
public LevelSelectorOrderer(BranchSelector startSelector, BranchSelector endSelector, boolean stopDescentOnResult, int maxDepth)
protected Pair<AtomicInteger,TraversalBranch[]> initialState()
initialState
in class AbstractSelectorOrderer<Pair<AtomicInteger,TraversalBranch[]>>
public TraversalBranch next(TraversalContext metadata)
BranchSelector
rules
. Since TraversalBranch
has the Path.endNode()
of the position and the
Path.lastRelationship()
to how it got there as well as
TraversalBranch#position()
, decisions
can be based on the current expansion source and the given rules.rules
of the traversal.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.