public class AlternatingSelectorOrderer extends org.neo4j.graphdb.impl.traversal.AbstractSelectorOrderer<Integer>
Constructor and Description |
---|
AlternatingSelectorOrderer(BranchSelector startSelector,
BranchSelector endSelector) |
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 AlternatingSelectorOrderer(BranchSelector startSelector, BranchSelector endSelector)
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, 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.