org.neo4j.graphdb.traversal
Class InitialBranchState.State<STATE>
java.lang.Object
org.neo4j.graphdb.traversal.InitialBranchState.Adapter<STATE>
org.neo4j.graphdb.traversal.InitialBranchState.State<STATE>
- Type Parameters:
STATE
-
- All Implemented Interfaces:
- InitialBranchState<STATE>, InitialStateFactory<STATE>
- Enclosing interface:
- InitialBranchState<STATE>
public static class InitialBranchState.State<STATE>
- extends InitialBranchState.Adapter<STATE>
Branch state evaluator for an initial state.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitialBranchState.State
public InitialBranchState.State(STATE initialState,
STATE reversedInitialState)
reverse
public InitialBranchState<STATE> reverse()
- Description copied from interface:
InitialBranchState
- Creates a version of this state factory which produces reversed initial state,
used in bidirectional traversals.
- Specified by:
reverse
in interface InitialBranchState<STATE>
- Overrides:
reverse
in class InitialBranchState.Adapter<STATE>
- Returns:
- an instance which produces reversed initial state.
initialState
public STATE initialState(Path path)
- Description copied from interface:
InitialStateFactory
- Returns an initial state for a
Path
. All paths entering this method
are start paths(es) of a traversal. State is passed down along traversal
branches as the traversal progresses and can be changed at any point by a
PathExpander
to becomes the new state from that point in that branch
and downwards.
- Parameters:
path
- the start branch to return the initial state for.
- Returns:
- an initial state for the traversal branch.
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.