|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TraversalBranch
Represents a position and a RelationshipExpander with a
traversal context, for example parent and an iterator of relationships to go
next. It's a base to write a BranchSelector on top of.
| Method Summary | |
|---|---|
boolean |
continues()
|
void |
evaluation(Evaluation eval)
Can change evaluation outcome in a negative direction. |
int |
expanded()
Returns the number of relationships this expansion source has expanded. |
boolean |
includes()
|
void |
initialize(PathExpander expander,
TraversalContext metadata)
Initializes this TraversalBranch, the relationship iterator,
Evaluation etc. |
TraversalBranch |
next(PathExpander expander,
TraversalContext metadata)
Returns the next expansion source from the expanded relationships from the current node. |
TraversalBranch |
parent()
The parent expansion source which created this TraversalBranch. |
void |
prune()
Explicitly tell this branch to be pruned so that consecutive calls to #next() is guaranteed to return null. |
| Methods inherited from interface org.neo4j.graphdb.Path |
|---|
endNode, iterator, lastRelationship, length, nodes, relationships, reverseNodes, reverseRelationships, startNode, toString |
| Method Detail |
|---|
TraversalBranch parent()
TraversalBranch.
TraversalBranch next(PathExpander expander,
TraversalContext metadata)
int expanded()
void prune()
#next() is guaranteed to return null.
boolean continues()
boolean includes()
Path representation of
this branch at least) should be included in the result of this
traversal, i.e. returned as one of the Paths from f.ex.
TraversalDescription.traverse(org.neo4j.graphdb.Node...)void evaluation(Evaluation eval)
eval - the Evaluation to AND with the current evaluation.
void initialize(PathExpander expander,
TraversalContext metadata)
TraversalBranch, the relationship iterator,
Evaluation etc.
expander - RelationshipExpander to use for getting relationships.metadata - TraversalContext to update on progress.
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||