Class RuleEngine

java.lang.Object
com.yahoo.prelude.semantics.engine.RuleEngine

public class RuleEngine extends Object
Evaluates the rules of a rule base. This method is thread safe on analyze calls, but not on modification calls.
Author:
bratseth
  • Constructor Details

    • RuleEngine

      public RuleEngine(RuleBase rules)
  • Method Details

    • evaluate

      public String evaluate(Query query, int traceLevel)
      Evaluates a rule base over a query
      Parameters:
      query - the query to evaluate
      traceLevel - the level of tracing to do
      Returns:
      the error caused by analyzing the query, or null if there was no error If there is an error, this query is destroyed (unusable)