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)
RelationshipExpander
Node
.expand
in interface RelationshipExpander
node
- the node to expand.node
.public final org.neo4j.kernel.Expansion<Relationship> expand(Path path, BranchState state)
PathExpander
Path
, most commonly from the
Path.endNode()
.expand
in interface PathExpander
path
- 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)
Expander
RelationshipType
to the Expander
.public abstract StandardExpander add(RelationshipType type, Direction direction)
Expander
public abstract StandardExpander remove(RelationshipType type)
Expander
RelationshipType
from the Expander
.public abstract StandardExpander reverse()
PathExpander
reverse
in interface PathExpander
PathExpander
.public abstract StandardExpander reversed()
RelationshipExpander
reversed
in interface Expander
reversed
in interface RelationshipExpander
RelationshipExpander
.public StandardExpander addNodeFilter(Predicate<? super Node> filter)
Expander
Node
filter.addNodeFilter
in interface Expander
filter
- filter to usepublic final Expander addRelationsipFilter(Predicate<? super Relationship> filter)
Expander
Relationship
filter.addRelationsipFilter
in interface Expander
filter
- filter to usepublic StandardExpander addRelationshipFilter(Predicate<? super Relationship> filter)
Expander
Relationship
filter.addRelationshipFilter
in interface Expander
filter
- filter to usepublic static PathExpander toPathExpander(RelationshipExpander expander)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.