org.objectweb.medor.optim.lib
Class IndexesGenerator

java.lang.Object
  extended byorg.objectweb.medor.optim.lib.IndexesGenerator
All Implemented Interfaces:
ExecPlanGenerator, QueryTransformer

public class IndexesGenerator
extends java.lang.Object
implements ExecPlanGenerator


Constructor Summary
IndexesGenerator()
           
 
Method Summary
 int[] computesFieldIndexes(TupleStructure ts, QueryTree[] nodes)
           
 void setFilterIndexes(Expression e, QueryTree[] qts)
          This method inherited from QueryIndexGenerator.
 QueryTree transform(QueryTree query)
          This methods transforms a QueryTree into another QueryTree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexesGenerator

public IndexesGenerator()
Method Detail

transform

public QueryTree transform(QueryTree query)
                    throws MedorException
Description copied from interface: QueryTransformer
This methods transforms a QueryTree into another QueryTree.

Specified by:
transform in interface QueryTransformer
Throws:
MedorException

computesFieldIndexes

public int[] computesFieldIndexes(TupleStructure ts,
                                  QueryTree[] nodes)
                           throws MedorException,
                                  ExpressionException
Throws:
MedorException
ExpressionException

setFilterIndexes

public void setFilterIndexes(Expression e,
                             QueryTree[] qts)
                      throws MedorException,
                             ExpressionException
This method inherited from QueryIndexGenerator. It checks that all Fields in the Expression are present in the array of QueryTree and sets yhe indexs of the fieldOperand.

Parameters:
e - Expression filter
qts - array of QueryTree
Throws:
MedorException
ExpressionException