public interface TraversalContext extends TraversalMetadata
TraversalBranches which they need to
move further and report their progress.| Modifier and Type | Method and Description |
|---|---|
<STATE> Evaluation |
evaluate(TraversalBranch branch,
BranchState<STATE> state)
Evaluates a
TraversalBranch whether or not to include it in the
result and whether or not to continue further down this branch or not. |
boolean |
isUnique(TraversalBranch branch)
Used for all except branches to check adherence to the traversal
uniqueness.
|
boolean |
isUniqueFirst(TraversalBranch branch)
Used for start branches to check adherence to the traversal uniqueness.
|
void |
relationshipTraversed()
Reports that one more relationship has been traversed in this
traversal.
|
void |
unnecessaryRelationshipTraversed()
Reports that one more relationship has been traversed, albeit
a relationship that hasn't provided any benefit to the traversal.
|
getNumberOfPathsReturned, getNumberOfRelationshipsTraversedvoid relationshipTraversed()
void unnecessaryRelationshipTraversed()
boolean isUniqueFirst(TraversalBranch branch)
branch - the TraversalBranch to check for uniqueness.true if the branch is considered unique and is
allowed to progress in this traversal.boolean isUnique(TraversalBranch branch)
branch - the TraversalBranch to check for uniqueness.true if the branch is considered unique and is
allowed to progress in this traversal.<STATE> Evaluation evaluate(TraversalBranch branch, BranchState<STATE> state)
TraversalBranch whether or not to include it in the
result and whether or not to continue further down this branch or not.STATE - the type of the state object.branch - the TraversalBranch to evaluate.state - the BranchState for the branch.Evaluation of the branch in this traversal.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.