no.sesat.search.query.token
Class EvaluationState

java.lang.Object
  extended by no.sesat.search.query.token.EvaluationState
All Implemented Interfaces:
Serializable, TokenEvaluationEngine.State

public class EvaluationState
extends Object
implements TokenEvaluationEngine.State

Default implementation of TokenEvaluationEngine.State.

Version:
$Id$
See Also:
Serialized Form

Constructor Summary
EvaluationState(Clause clause)
           
EvaluationState(String term, Set<TokenPredicate> known, Set<TokenPredicate> possible)
          Creates a new instance of EvaluationState
 
Method Summary
 Set<TokenPredicate> getKnownPredicates()
          known matching predicates.
 Set<TokenPredicate> getPossiblePredicates()
          possible matching predicates.
 Query getQuery()
          the current query, or null if in term-evaluation mode.
 String getTerm()
          the current clause's term, or null if in query-evaluation mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvaluationState

public EvaluationState(String term,
                       Set<TokenPredicate> known,
                       Set<TokenPredicate> possible)
Creates a new instance of EvaluationState

Parameters:
term -
known -
possible -

EvaluationState

public EvaluationState(Clause clause)
Method Detail

getTerm

public String getTerm()
Description copied from interface: TokenEvaluationEngine.State
the current clause's term, or null if in query-evaluation mode. *

Specified by:
getTerm in interface TokenEvaluationEngine.State
Returns:

getQuery

public Query getQuery()
Description copied from interface: TokenEvaluationEngine.State
the current query, or null if in term-evaluation mode. *

Specified by:
getQuery in interface TokenEvaluationEngine.State
Returns:

getKnownPredicates

public Set<TokenPredicate> getKnownPredicates()
Description copied from interface: TokenEvaluationEngine.State
known matching predicates. by making this available performance is improved. *

Specified by:
getKnownPredicates in interface TokenEvaluationEngine.State
Returns:

getPossiblePredicates

public Set<TokenPredicate> getPossiblePredicates()
Description copied from interface: TokenEvaluationEngine.State
possible matching predicates. by making this available performance is improved. *

Specified by:
getPossiblePredicates in interface TokenEvaluationEngine.State
Returns:


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