public abstract class PathExpanders extends Object
PathExpander
factory methods.
Use PathExpanderBuilder
to build specialized PathExpander
s.
Modifier and Type | Method and Description |
---|---|
static <STATE> PathExpander<STATE> |
allTypesAndDirections()
A very permissive
PathExpander that follows any type in any direction. |
static <STATE> PathExpander<STATE> |
forConstantDirectionWithTypes(RelationshipType... types)
An expander forcing constant relationship direction
|
static <STATE> PathExpander<STATE> |
forDirection(Direction direction)
A very permissive
PathExpander that follows any type in direction . |
static <STATE> PathExpander<STATE> |
forType(RelationshipType type)
A very permissive
PathExpander that follows type relationships in any direction. |
static <STATE> PathExpander<STATE> |
forTypeAndDirection(RelationshipType type,
Direction direction)
|
static <STATE> PathExpander<STATE> |
forTypesAndDirections(RelationshipType type1,
Direction direction1,
RelationshipType type2,
Direction direction2,
Object... more)
|
public static <STATE> PathExpander<STATE> allTypesAndDirections()
PathExpander
that follows any type in any direction.STATE
- the type of the object that holds the statePathExpander
that follows any type in any directionpublic static <STATE> PathExpander<STATE> forType(RelationshipType type)
PathExpander
that follows type
relationships in any direction.STATE
- the type of the object that holds the statetype
- the type of relationships to expand in any directionPathExpander
that follows type
relationships in any directionpublic static <STATE> PathExpander<STATE> forDirection(Direction direction)
PathExpander
that follows any type in direction
.STATE
- the type of the object that holds the statedirection
- the direction to follow relationships inPathExpander
that follows any type in direction
public static <STATE> PathExpander<STATE> forTypeAndDirection(RelationshipType type, Direction direction)
STATE
- the type of the object that holds the statetype
- the type of relationships to followdirection
- the direction to follow relationships inPathExpander
that follows type
in direction
public static <STATE> PathExpander<STATE> forTypesAndDirections(RelationshipType type1, Direction direction1, RelationshipType type2, Direction direction2, Object... more)
STATE
- the type of the object that holds the statetype1
- the type of relationships to follow in direction1
direction1
- the direction to follow type1
relationships intype2
- the type of relationships to follow in direction2
direction2
- the direction to follow type2
relationships inmore
- add more type
/direction
pairsPathExpander
that follows only the type
/direction
pairs that you listpublic static <STATE> PathExpander<STATE> forConstantDirectionWithTypes(RelationshipType... types)
STATE
- the type of the object that holds the statetypes
- types of relationships to followPathExpander
which enforces constant relationship directionCopyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.