public interface Traverser extends org.neo4j.graphdb.ResourceIterable<Path>
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.Modifier and Type | Method and Description |
---|---|
org.neo4j.graphdb.ResourceIterator<Path> |
iterator()
Represents the traversal in the form of
Path s. |
TraversalMetadata |
metadata() |
org.neo4j.graphdb.ResourceIterable<Node> |
nodes()
Represents the traversal in the form of
Node s. |
org.neo4j.graphdb.ResourceIterable<Relationship> |
relationships()
Represents the traversal in the form of
Relationship s. |
forEach, spliterator
org.neo4j.graphdb.ResourceIterable<Node> nodes()
Node
s. This is a
convenient way to iterate over Path
s and get the
Path.endNode()
for each position.Node
objects.org.neo4j.graphdb.ResourceIterable<Relationship> relationships()
Relationship
s. This is a
convenient way to iterate over Path
s and get the
Path.lastRelationship()
for each position.Relationship
objects.org.neo4j.graphdb.ResourceIterator<Path> iterator()
Path
s.
When a traversal is done and haven't been fully iterated through,
it should be closed
.TraversalMetadata metadata()
TraversalMetadata
from the last traversal performed,
or being performed by this traverser.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.