org.ccnx.ccn.impl.repo.ContentTree.InterestPreScreener Class Reference

Prescreen candidates against elements of an interest that we can so we don't need to consider candidates that have no chance of matching. More...

List of all members.

Protected Member Functions

 InterestPreScreener (Interest interest, int excludeLevel, int startLevel)
int preScreen (TreeNode node, int level)
 Run the prescreen.

Protected Attributes

int _minComponents = 0
int _maxComponents = 32767
Exclude _exclude
int _excludeLevel


Detailed Description

Prescreen candidates against elements of an interest that we can so we don't need to consider candidates that have no chance of matching.

Currently we prescreen for matching the exclude filter if there is one and that the candidate has the correct number of components.


Member Function Documentation

int org.ccnx.ccn.impl.repo.ContentTree.InterestPreScreener.preScreen ( TreeNode  node,
int  level 
) [protected]

Run the prescreen.

Parameters:
level the level within the hierarchy in which this prescreen was called. Used to decide when to run the exclude test.
Returns:
-1 => reject all entries below this 0 => reject this entry but keep searching 1 => keep this entry


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:53 2012 for Content-Centric Networking in Java by  doxygen 1.5.6