Package | Description |
---|---|
org.neo4j.graphdb |
The core graph database API.
|
org.neo4j.graphdb.traversal |
Traversal framework.
|
Modifier and Type | Method and Description |
---|---|
static <STATE> PathExpander<STATE> |
PathExpanders.allTypesAndDirections()
A very permissive
PathExpander that follows any type in any direction. |
<STATE> PathExpander<STATE> |
PathExpanderBuilder.build()
Produce a PathExpander from the configuration you have built up.
|
static <STATE> PathExpander<STATE> |
PathExpanders.forDirection(Direction direction)
A very permissive
PathExpander that follows any type in direction . |
static <STATE> PathExpander<STATE> |
PathExpanders.forType(RelationshipType type)
A very permissive
PathExpander that follows type in any direction. |
static <STATE> PathExpander<STATE> |
PathExpanders.forTypeAndDirection(RelationshipType type,
Direction direction)
|
static <STATE> PathExpander<STATE> |
PathExpanders.forTypesAndDirections(RelationshipType type1,
Direction direction1,
RelationshipType type2,
Direction direction2,
Object... more)
|
PathExpander<STATE> |
PathExpander.reverse()
Returns a new instance with the exact expansion logic, but reversed.
|
Modifier and Type | Method and Description |
---|---|
BranchSelector |
BranchOrderingPolicy.create(TraversalBranch startBranch,
PathExpander expander)
Instantiates a
BranchSelector with startBranch as the
first branch to base a decision on "where to go next". |
static Comparator<? super Path> |
Sorting.endNodeRelationshipCount(PathExpander expander)
Sorts
Path s by the relationship count returned for its end node
by the supplied expander . |
TraversalDescription |
TraversalDescription.expand(PathExpander<?> expander)
Sets the
PathExpander as the expander of relationships,
discarding all previous calls to
TraversalDescription.relationships(RelationshipType) and
TraversalDescription.relationships(RelationshipType, Direction) or any other expand method. |
<STATE> TraversalDescription |
TraversalDescription.expand(PathExpander<STATE> expander,
InitialBranchState<STATE> initialState)
Sets the
PathExpander as the expander of relationships,
discarding all previous calls to
TraversalDescription.relationships(RelationshipType) and
TraversalDescription.relationships(RelationshipType, Direction) or any other expand method. |
<STATE> TraversalDescription |
TraversalDescription.expand(PathExpander<STATE> expander,
InitialStateFactory<STATE> initialState)
Deprecated.
Because InitialStateFactory is deprecated
|
void |
TraversalBranch.initialize(PathExpander expander,
TraversalContext metadata)
Initializes this
TraversalBranch , the relationship iterator,
Evaluation etc. |
TraversalBranch |
TraversalBranch.next(PathExpander expander,
TraversalContext metadata)
Returns the next expansion source from the expanded relationships
from the current node.
|
Copyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.