no.sesat.search.query.token
Class DeadTokenEvaluationEngineImpl
java.lang.Object
no.sesat.search.query.token.TokenEvaluationEngineImpl
no.sesat.search.query.token.DeadTokenEvaluationEngineImpl
- All Implemented Interfaces:
- TokenEvaluationEngine
public final class DeadTokenEvaluationEngineImpl
- extends TokenEvaluationEngineImpl
A dead evaluation engine. Used when evaluation is turned off.
Rather than solely relying on the ALWAYS_FALSE_EVALUTOR
evaluate(..) always throws a EvaluationRuntimeException that is treated as a false evaluation
but also prevents the evaluation for being cached by clauses (which are implemented within the flyweight pattern).
- Version:
- $Id: DeadTokenEvaluationEngineImpl.java 7225 2009-04-09 00:32:20Z ssmiweve $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeadTokenEvaluationEngineImpl
public DeadTokenEvaluationEngineImpl(TokenEvaluationEngine.Context cxt)
getEvaluator
public TokenEvaluator getEvaluator(TokenPredicate token)
throws EvaluationException
- Description copied from interface:
TokenEvaluationEngine
- Find or create the TokenEvaluator that will evaluate if given (Token)Predicate is true.
- Specified by:
getEvaluator in interface TokenEvaluationEngine- Overrides:
getEvaluator in class TokenEvaluationEngineImpl
- Returns:
-
- Throws:
EvaluationException - if something goes wrong constructing or finding an appropriate evaluator.
evaluate
public boolean evaluate(TokenPredicate token)
- Description copied from interface:
TokenEvaluationEngine
- The real evaluation method all other evaluate...(..) methods will delegate to.
- Specified by:
evaluate in interface TokenEvaluationEngine- Overrides:
evaluate in class TokenEvaluationEngineImpl
- Returns:
Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.