Package org.neo4j.graphdb.traversal
Class Evaluator.AsPathEvaluator<STATE>
java.lang.Object
org.neo4j.graphdb.traversal.Evaluator.AsPathEvaluator<STATE>
- Type Parameters:
STATE
- the type of state passed into the evaluator.
- All Implemented Interfaces:
Evaluator
,PathEvaluator<STATE>
- Enclosing interface:
- Evaluator
Exposes an
Evaluator
as a PathEvaluator
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.neo4j.graphdb.traversal.Evaluator
Evaluator.AsPathEvaluator<STATE>
Nested classes/interfaces inherited from interface org.neo4j.graphdb.traversal.PathEvaluator
PathEvaluator.Adapter<STATE>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
.evaluate
(Path path, BranchState<STATE> state) Evaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
.
-
Constructor Details
-
AsPathEvaluator
-
-
Method Details
-
evaluate
Description copied from interface:PathEvaluator
Evaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
. And also whether or not to continue traversing down thatpath
or if it instead should be pruned so that the traverser won't continue down that branch represented bypath
.- Specified by:
evaluate
in interfacePathEvaluator<STATE>
- Parameters:
path
- thePath
to evaluate.state
- the state of this branch in the current traversal.- Returns:
- an
Evaluation
containing information about whether or not to return it from theTraverser
and whether or not to continue down that path.
-
evaluate
Description copied from interface:Evaluator
Evaluates aPath
and returns anEvaluation
containing information about whether or not to include it in the traversal result, i.e return it from theTraverser
. And also whether or not to continue traversing down thatpath
or if it instead should be pruned so that the traverser won't continue down that branch represented bypath
.- Specified by:
evaluate
in interfaceEvaluator
- Parameters:
path
- thePath
to evaluate.- Returns:
- an
Evaluation
containing information about whether or not to return it from theTraverser
and whether or not to continue down that path.
-