|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.kernel.StandardExpander
public abstract class StandardExpander
Field Summary | |
---|---|
static StandardExpander |
DEFAULT
|
Method Summary | |
---|---|
StandardExpander |
add(RelationshipType type)
Add a RelationshipType to the Expander . |
abstract StandardExpander |
add(RelationshipType type,
Direction direction)
Add a RelationshipType with a Direction to the
Expander . |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final StandardExpander DEFAULT
Method Detail |
---|
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 String toString()
toString
in class Object
public final StandardExpander add(RelationshipType type)
Expander
RelationshipType
to the Expander
.
add
in interface Expander
type
- relationship type
public abstract StandardExpander add(RelationshipType type, Direction direction)
Expander
RelationshipType
with a Direction
to the
Expander
.
add
in interface Expander
type
- relationship typedirection
- expanding direction
public abstract StandardExpander remove(RelationshipType type)
Expander
RelationshipType
from the Expander
.
remove
in interface Expander
type
- relationship type
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 use
public final Expander addRelationsipFilter(Predicate<? super Relationship> filter)
Expander
Relationship
filter.
addRelationsipFilter
in interface Expander
filter
- filter to use
public StandardExpander addRelationshipFilter(Predicate<? super Relationship> filter)
Expander
Relationship
filter.
addRelationshipFilter
in interface Expander
filter
- filter to use
public static PathExpander toPathExpander(RelationshipExpander expander)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |