messif.objects.util
Interface ObjectMatcher<T>

Type Parameters:
T - the type of objects to match
All Known Implementing Classes:
SplitPolicy, SplitPolicyBallPartitioning, SplitPolicyExcludedMiddlePartitioning, SplitPolicyGeneralizedHyperplane, SplitPolicyMultiWayBallPartitioning, SplitPolicyVoronoiPartitioning

public interface ObjectMatcher<T>

Interface which provides matching capabilities. Matching functionality is used when you need to filter out some objects of the whole bucket, for example.


Method Summary
 int match(T object)
          Matching method.
 

Method Detail

match

int match(T object)
Matching method. This method provides matching functionality and is used for categorization of objects into groups (partitions).

Parameters:
object - An object that is tested for the matching condition.
Returns:
Returns an identification of partition to which the object falls. When applied on a bucket (through the method GetMatchingObjects()) it is convenient to return 0 for all objects which stay in the bucket. Zero value returned means that object doesn't match.