Database Reference
In-Depth Information
Table 4.2. The possible values of the Evaluation enumeration
Method signature
Description
Include the current node in the result and continue travers-
ing
INCLUDE_AND_CONTINUE
Include the current node in the result but stop going further
down this path
INCLUDE_AND_PRUNE
EXCLUDE_AND_CONTINUE
Discard the current node and continue traversing
EXCLUDE_AND_PRUNE
Discard the current node and stop traversing
Now that you understand the Path interface and the Evaluation enumeration, it's time
to implement a custom evaluator. The following listing shows the code implementation.
Listing 4.7. Custom evaluator to exclude movies that the user has seen
You can now include the implemented custom evaluator in the traversal definition. The
next listing shows the improved traversal definition.
 
Search WWH ::




Custom Search