anl.aida.util
Class KeywordFilter

java.lang.Object
  extended by anl.aida.util.KeywordFilter
All Implemented Interfaces:
Filter<org.apache.lucene.index.Term>

public class KeywordFilter
extends java.lang.Object
implements Filter<org.apache.lucene.index.Term>


Field Summary
private  java.util.Set<java.lang.String> keepSet
           
 
Constructor Summary
KeywordFilter(Keywords keywords)
          Constructor for adding keywords to filter
 
Method Summary
 boolean evaluate(org.apache.lucene.index.Term item)
          Evaluates an item against some implementor specific criteria and returns true if the item passes the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keepSet

private java.util.Set<java.lang.String> keepSet
Constructor Detail

KeywordFilter

public KeywordFilter(Keywords keywords)
Constructor for adding keywords to filter

Parameters:
keywords -
Method Detail

evaluate

public boolean evaluate(org.apache.lucene.index.Term item)
Description copied from interface: Filter
Evaluates an item against some implementor specific criteria and returns true if the item passes the filter.

Specified by:
evaluate in interface Filter<org.apache.lucene.index.Term>
Parameters:
item - the item to evaluate
Returns:
true if the item passes the filter, otherwise false.