net.ontopia.persistence.query.sql
Class RedundantTablesSQLOptimizer

java.lang.Object
  extended by net.ontopia.persistence.query.sql.FilterSQLOptimizer
      extended by net.ontopia.persistence.query.sql.RedundantTablesSQLOptimizer

public class RedundantTablesSQLOptimizer
extends FilterSQLOptimizer

INTERNAL: SQL optimizer that removes table- and column references that are redundant.


Field Summary
protected  java.util.Map cemap
           
protected  java.util.Map rcmap
           
protected  java.util.Map rtmap
           
protected  java.util.Map tcmap
           
protected  java.util.Set tvset
           
 
Constructor Summary
RedundantTablesSQLOptimizer()
           
 
Method Summary
protected  void addEntry(java.util.Map map, java.lang.Object key, java.lang.Object value)
           
protected  void addTableColumns(SQLExpressionIF expr, SQLColumns cols)
           
protected  void addTableVerbatim(SQLTable tbl)
           
protected  SQLValueIF filterValue(SQLValueIF value)
           
 SQLQuery optimize(SQLQuery query)
           
 
Methods inherited from class net.ontopia.persistence.query.sql.FilterSQLOptimizer
filterAggregate, filterAnd, filterColumns, filterEquals, filterExists, filterExpression, filterExpressions, filterFalse, filterFilter, filterFunction, filterIn, filterIsNull, filterJoin, filterLike, filterNot, filterNotEquals, filterNull, filterOr, filterOrderBy, filterParameter, filterPrimitive, filterSelect, filterSetOperation, filterTuple, filterValueExpression, filterValues, filterVerbatim, filterVerbatimExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tcmap

protected java.util.Map tcmap

cemap

protected java.util.Map cemap

tvset

protected java.util.Set tvset

rcmap

protected java.util.Map rcmap

rtmap

protected java.util.Map rtmap
Constructor Detail

RedundantTablesSQLOptimizer

public RedundantTablesSQLOptimizer()
Method Detail

optimize

public SQLQuery optimize(SQLQuery query)
Overrides:
optimize in class FilterSQLOptimizer

addTableVerbatim

protected void addTableVerbatim(SQLTable tbl)

addTableColumns

protected void addTableColumns(SQLExpressionIF expr,
                               SQLColumns cols)

addEntry

protected void addEntry(java.util.Map map,
                        java.lang.Object key,
                        java.lang.Object value)

filterValue

protected SQLValueIF filterValue(SQLValueIF value)
Overrides:
filterValue in class FilterSQLOptimizer


Copyright © 2000-2012 Ontopia.