Package org.neo4j.graphdb.traversal
Interface TraversalMetadata
- All Known Subinterfaces:
TraversalContext
public interface TraversalMetadata
Provides metadata about a traversal.
-
Method Summary
Modifier and TypeMethodDescriptionint
int
-
Method Details
-
getNumberOfPathsReturned
int getNumberOfPathsReturned()- Returns:
- number of paths returned up to this point in the traversal.
-
getNumberOfRelationshipsTraversed
int getNumberOfRelationshipsTraversed()- Returns:
- number of relationships traversed up to this point in the traversal. Some relationships in this counter might be unnecessarily traversed relationships, but at the same time it gives an accurate measure of how many relationships are requested from the underlying graph. Useful for comparing and first-level debugging of queries.
-