public abstract class StandardExpander extends Object implements Expander, PathExpander
| Modifier and Type | Field and Description |
|---|---|
static StandardExpander |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
StandardExpander |
add(RelationshipType type)
Add a
RelationshipType to the Expander. |
abstract StandardExpander |
add(RelationshipType type,
Direction direction)
|
StandardExpander |
addNodeFilter(Predicate<? super Node> filter)
Add a
Node filter. |
StandardExpander |
addRelationshipFilter(Predicate<? super Relationship> filter)
Add a
Relationship filter. |
Expander |
addRelationsipFilter(Predicate<? super Relationship> filter)
Add a
Relationship filter. |
org.neo4j.kernel.Expansion<Relationship> |
expand(Node node)
Returns relationships for a
Node. |
org.neo4j.kernel.Expansion<Relationship> |
expand(Path path,
BranchState state)
Returns relationships for a
Path, most commonly from the
Path.endNode(). |
abstract StandardExpander |
remove(RelationshipType type)
Remove a
RelationshipType from the Expander. |
abstract StandardExpander |
reverse()
Returns a new instance with the exact expansion logic, but reversed.
|
abstract StandardExpander |
reversed()
Returns a new instance with the exact expansion logic, but reversed.
|
static PathExpander |
toPathExpander(RelationshipExpander expander) |
String |
toString() |
public static final StandardExpander DEFAULT
public final org.neo4j.kernel.Expansion<Relationship> expand(Node node)
RelationshipExpanderNode.expand in interface RelationshipExpandernode - the node to expand.node.public final org.neo4j.kernel.Expansion<Relationship> expand(Path path, BranchState state)
PathExpanderPath, most commonly from the
Path.endNode().expand in interface PathExpanderpath - the path to expand (most commonly the end node).state - the state of this branch in the current traversal.
BranchState.getState() returns the state and
BranchState.setState(Object) optionally sets the state for
the children of this branch. If state isn't altered the children
of this path will see the state of the parent.path.public final StandardExpander add(RelationshipType type)
ExpanderRelationshipType to the Expander.public abstract StandardExpander add(RelationshipType type, Direction direction)
Expanderpublic abstract StandardExpander remove(RelationshipType type)
ExpanderRelationshipType from the Expander.public abstract StandardExpander reverse()
PathExpanderreverse in interface PathExpanderPathExpander.public abstract StandardExpander reversed()
RelationshipExpanderreversed in interface Expanderreversed in interface RelationshipExpanderRelationshipExpander.public StandardExpander addNodeFilter(Predicate<? super Node> filter)
ExpanderNode filter.addNodeFilter in interface Expanderfilter - filter to usepublic final Expander addRelationsipFilter(Predicate<? super Relationship> filter)
ExpanderRelationship filter.addRelationsipFilter in interface Expanderfilter - filter to usepublic StandardExpander addRelationshipFilter(Predicate<? super Relationship> filter)
ExpanderRelationship filter.addRelationshipFilter in interface Expanderfilter - filter to usepublic static PathExpander toPathExpander(RelationshipExpander expander)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.