no.sesat.search.query.token
Class VeryFastTokenEvaluator

java.lang.Object
  extended by no.sesat.search.query.token.VeryFastTokenEvaluator
All Implemented Interfaces:
TokenEvaluator

public final class VeryFastTokenEvaluator
extends Object
implements TokenEvaluator

VeryFastTokenEvaluator is part of no.sesat.search.query.

Version:
$Id: VeryFastTokenEvaluator.java 7225 2009-04-09 00:32:20Z ssmiweve $

Field Summary
static String VERYFAST_EVALUATOR_XMLFILE
          The configuration file from the skin that specifies token predicate to list mappings.
 
Method Summary
 boolean evaluateToken(TokenPredicate token, String term, String query)
          Evaluate the token with regards to query.
 Set<String> getMatchValues(TokenPredicate token, String term)
          Each true evaluation may also provide a synonym (or "match value").
 boolean isQueryDependant(TokenPredicate predicate)
           
 boolean isResponsibleFor(TokenPredicate predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERYFAST_EVALUATOR_XMLFILE

public static final String VERYFAST_EVALUATOR_XMLFILE
The configuration file from the skin that specifies token predicate to list mappings.

See Also:
Constant Field Values
Method Detail

evaluateToken

public boolean evaluateToken(TokenPredicate token,
                             String term,
                             String query)
Description copied from interface: TokenEvaluator
Evaluate the token with regards to query. This usually means to check if the token occurs in query, but there are other possibilities such as tokens that always evaluates to true.

Specified by:
evaluateToken in interface TokenEvaluator
term - the token to look for.
Returns:
true if token occurs in query

getMatchValues

public Set<String> getMatchValues(TokenPredicate token,
                                  String term)
Description copied from interface: TokenEvaluator
Each true evaluation may also provide a synonym (or "match value").

Specified by:
getMatchValues in interface TokenEvaluator
Returns:
a list of Tokens

isQueryDependant

public boolean isQueryDependant(TokenPredicate predicate)
Specified by:
isQueryDependant in interface TokenEvaluator
Returns:

isResponsibleFor

public boolean isResponsibleFor(TokenPredicate predicate)


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.