com.sun.labs.minion.retrieval
Class QueryOptimizer

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

public class QueryOptimizer
extends java.lang.Object

The QueryOptimizer steps through a query, looking for changes that can be made to optimize the evaluation of the query. This is very simplistic right now -- it will combine relational operators into range operators where possible.


Constructor Summary
QueryOptimizer()
           
 
Method Summary
 QueryElement optimize(QueryElement qe)
          Optimize the current QE and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryOptimizer

public QueryOptimizer()
Method Detail

optimize

public QueryElement optimize(QueryElement qe)
Optimize the current QE and returns it. This method is non-static so that we could eventually add some evaluation that needs state.

Parameters:
qe - the query element to optimize
Returns:
the optimized query