public class StringEvaluatorSingleTermFilter extends AbstractSingleTermFilter
Modifier and Type | Field and Description |
---|---|
protected Evaluator<java.lang.String,java.lang.String> |
evaluator
The evaluator to adapt.
|
Constructor and Description |
---|
StringEvaluatorSingleTermFilter()
Creates a new
StringEvaluatorSingleTermFilter with a null
evaluator. |
StringEvaluatorSingleTermFilter(Evaluator<java.lang.String,java.lang.String> evaluator)
Creates a new
StringEvaluatorSingleTermFilter with a given
evaluator. |
Modifier and Type | Method and Description |
---|---|
TermOccurrence |
filterTerm(TermOccurrence occurrence)
Takes a single term occurrence and filters that occurrence into a new
occurrence or returns null, indicating that the filter rejects that
term.
|
Evaluator<java.lang.String,java.lang.String> |
getEvaluator()
Gets the evaluator being used as a filter.
|
void |
setEvaluator(Evaluator<java.lang.String,java.lang.String> evaluator)
Sets the evaluator being used as a filter.
|
filterTerms
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected Evaluator<java.lang.String,java.lang.String> evaluator
public StringEvaluatorSingleTermFilter()
StringEvaluatorSingleTermFilter
with a null
evaluator.public StringEvaluatorSingleTermFilter(Evaluator<java.lang.String,java.lang.String> evaluator)
StringEvaluatorSingleTermFilter
with a given
evaluator.evaluator
- The evaluator to use.public TermOccurrence filterTerm(TermOccurrence occurrence)
SingleTermFilter
occurrence
- The term occurrence to filter.public Evaluator<java.lang.String,java.lang.String> getEvaluator()
public void setEvaluator(Evaluator<java.lang.String,java.lang.String> evaluator)
evaluator
- The evaluator.