com.sun.labs.minion.retrieval
Class QueryEvaluator

java.lang.Object
  extended by com.sun.labs.minion.retrieval.QueryEvaluator

public class QueryEvaluator
extends java.lang.Object


Field Summary
protected static java.lang.String logTag
           
 
Constructor Summary
QueryEvaluator()
           
 
Method Summary
 java.util.List eval(java.util.List parts, QueryConfig qc, java.lang.String name, Relation.Operator op, java.lang.String value)
          Evaluates a field term.
 java.util.List eval(java.util.List parts, QueryElement qe)
          Evaluates a query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logTag

protected static java.lang.String logTag
Constructor Detail

QueryEvaluator

public QueryEvaluator()
Method Detail

eval

public java.util.List eval(java.util.List parts,
                           QueryConfig qc,
                           java.lang.String name,
                           Relation.Operator op,
                           java.lang.String value)
Evaluates a field term.

Parameters:
parts - The partitions to evaluate against.
name - The name of the field.
op - The operator to use.
value - The value to compare against.
Returns:
a list of ArrayGroups containing the results for the corresponding partitions.

eval

public java.util.List eval(java.util.List parts,
                           QueryElement qe)
Evaluates a query

Parameters:
parts - The partitions to evaluate against.
qe - The query element, with query config and weight function already set
Returns:
a list of ArrayGroups containing the results for the corresponding partitions.