Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.sql.compile
Interface OptimizerFactory  view OptimizerFactory download OptimizerFactory.java


public interface OptimizerFactory

This is simply the factory for creating an optimizer.

There is expected to be only one of these configured per database.


Field Summary
static java.lang.String MODULE
          Module name for the monitor's module locating system.
 
Method Summary
 CostEstimate getCostEstimate()
          Return a new CostEstimate.
 int getMaxMemoryPerTable()
          Return the maxMemoryPerTable setting, this is used in optimizer, as well as subquery materialization at run time.
 Optimizer getOptimizer(OptimizableList optimizableList, OptimizablePredicateList predicateList, org.apache.derby.iapi.sql.dictionary.DataDictionary dDictionary, RequiredRowOrdering requiredRowOrdering, int numTablesInQuery, org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
          Only one optimizer level should exist in the database, however, the connection may have multiple instances of that optimizer at a given time.
 boolean supportsOptimizerTrace()
          Return whether or not the optimizer associated with this factory supports optimizer trace.
 

Field Detail

MODULE

public static final java.lang.String MODULE
Module name for the monitor's module locating system.

See Also:
Constant Field Values
Method Detail

getOptimizer

public Optimizer getOptimizer(OptimizableList optimizableList,
                              OptimizablePredicateList predicateList,
                              org.apache.derby.iapi.sql.dictionary.DataDictionary dDictionary,
                              RequiredRowOrdering requiredRowOrdering,
                              int numTablesInQuery,
                              org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
                       throws org.apache.derby.iapi.error.StandardException
Only one optimizer level should exist in the database, however, the connection may have multiple instances of that optimizer at a given time.


getCostEstimate

public CostEstimate getCostEstimate()
                             throws org.apache.derby.iapi.error.StandardException
Return a new CostEstimate.


supportsOptimizerTrace

public boolean supportsOptimizerTrace()
Return whether or not the optimizer associated with this factory supports optimizer trace.


getMaxMemoryPerTable

public int getMaxMemoryPerTable()
Return the maxMemoryPerTable setting, this is used in optimizer, as well as subquery materialization at run time.