Package org.neo4j.graphdb.traversal
Class InitialBranchState.State<STATE>
java.lang.Object
org.neo4j.graphdb.traversal.InitialBranchState.State<STATE>
- All Implemented Interfaces:
InitialBranchState<STATE>
- Enclosing interface:
- InitialBranchState<STATE>
public static class InitialBranchState.State<STATE>
extends Object
implements InitialBranchState<STATE>
Branch state evaluator for an initial state.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.neo4j.graphdb.traversal.InitialBranchState
InitialBranchState.State<STATE>
-
Field Summary
Fields inherited from interface org.neo4j.graphdb.traversal.InitialBranchState
DOUBLE_ZERO, NO_STATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioninitialState
(Path path) Returns an initial state for aPath
.reverse()
Creates a version of this state factory which produces reversed initial state, used in bidirectional traversals.
-
Constructor Details
-
State
-
-
Method Details
-
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 interfaceInitialBranchState<STATE>
- Returns:
- an instance which produces reversed initial state.
-
initialState
Description copied from interface:InitialBranchState
Returns an initial state for aPath
. 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 aPathExpander
to becomes the new state from that point in that branch and downwards.- Specified by:
initialState
in interfaceInitialBranchState<STATE>
- Parameters:
path
- the start branch to return the initial state for.- Returns:
- an initial state for the traversal branch.
-