public class LevelSelectorOrderer
extends org.neo4j.graphdb.impl.traversal.AbstractSelectorOrderer<org.neo4j.graphdb.traversal.LevelSelectorOrderer.Entry>
| Constructor and Description | 
|---|
| LevelSelectorOrderer(BranchSelector startSelector,
                    BranchSelector endSelector,
                    boolean stopDescentOnResult,
                    int maxDepth) | 
| Modifier and Type | Method and Description | 
|---|---|
| TraversalBranch | next(TraversalContext metadata)Decides the next position ("where to go from here") from the current
 position, based on the  rules. | 
public LevelSelectorOrderer(BranchSelector startSelector, BranchSelector endSelector, boolean stopDescentOnResult, int maxDepth)
public TraversalBranch next(TraversalContext metadata)
BranchSelectorrules. Since TraversalBranch
 has the Path.endNode() of the position and the
 Path.lastRelationship() to how it got there, decisions
 can be based on the current expansion source and the given rules.metadata - the context for the traversalrules of the traversal.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.