net.obsearch.filter
Interface Filter<O extends OB>

All Known Implementing Classes:
FilterAnd, FilterNonEquals, FilterOr

public interface Filter<O extends OB>

Filter allows the user to remove unwanted results from OBSearch. If the distance function is more costly than the filter, then there could be performance gains for a filter. Users shall provide an implementation of Filter that suits their needs. The query object is provided in case the filtering class provided by the user requires this information.

Author:
Arnoldo Jose Muller Molina

Method Summary
 boolean accept(O dbObject, O query)
          Returning true implies that the object "dbObject" will be included in the result set.
 

Method Detail

accept

boolean accept(O dbObject,
               O query)
Returning true implies that the object "dbObject" will be included in the result set.

Parameters:
dbObject - Object that is considered as a result.
query - Original query provided by the user.
Returns:
true if dbObject is to be included in the result set.


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.