|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Traverser
This interface represents the traverser which is used to step through the
results of a traversal. Each step can be represented in different ways. The
default is as Path
objects which all other representations can be
derived from, i.e Node
or Relationship
. Each step
can also be represented in one of those representations directly.
Method Summary | |
---|---|
Iterator<Path> |
iterator()
Represents the traversal in the form of Path s. |
Iterable<Node> |
nodes()
Represents the traversal in the form of Node s. |
Iterable<Relationship> |
relationships()
Represents the traversal in the form of Relationship s. |
Method Detail |
---|
Iterable<Node> nodes()
Node
s. This is a
convenient way to iterate over Path
s and get the
Path.endNode()
for each position.
Node
objects.Iterable<Relationship> relationships()
Relationship
s. This is a
convenient way to iterate over Path
s and get the
Path.lastRelationship()
for each position.
Relationship
objects.Iterator<Path> iterator()
Path
s.
iterator
in interface Iterable<Path>
Path
objects.
|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |