public static class InitialStateFactory.AsInitialBranchState<STATE> extends Object implements InitialBranchState<STATE>
InitialStateFactory in a InitialBranchStateInitialBranchState.Adapter<STATE>, InitialBranchState.State<STATE>InitialStateFactory.AsInitialBranchState<STATE>NO_STATE| Constructor and Description |
|---|
InitialStateFactory.AsInitialBranchState(InitialStateFactory<STATE> factory) |
| Modifier and Type | Method and Description |
|---|---|
STATE |
initialState(Path path)
Returns an initial state for a
Path. |
InitialBranchState<STATE> |
reverse()
Creates a version of this state factory which produces reversed initial state,
used in bidirectional traversals.
|
public InitialStateFactory.AsInitialBranchState(InitialStateFactory<STATE> factory)
public InitialBranchState<STATE> reverse()
InitialBranchStatereverse in interface InitialBranchState<STATE>public STATE initialState(Path path)
InitialStateFactoryPath. 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.initialState in interface InitialStateFactory<STATE>path - the start branch to return the initial state for.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.