Package mondrian.rolap.aggmatcher
Class AggGen
java.lang.Object
mondrian.rolap.aggmatcher.AggGen
This class is used to create "lost" and "collapsed" aggregate table
creation sql (creates the rdbms table and inserts into it from the base
fact table).
- Author:
- Richard M. Emberson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Return a String containing the sql code to create a collapsed dimension table.Return a String containing the sql code to create a lost dimension table.protected JdbcSchema.Table.Column
getColumn
(JdbcSchema.Table table, String name) protected String
protected RolapStar.Table
protected String
protected String
getRolapStarColumnName
(RolapStar.Column rColumn) protected SqlQuery
protected JdbcSchema.Table
getTable
(JdbcSchema db, String name) protected JdbcSchema.Table
getTable
(JdbcSchema db, RolapStar.Table rt) Return the sql code to populate a collapsed dimension table from the fact table.Return the sql code to populate a lost dimension table from the fact table.boolean
isReady()
Return true if this instance is ready to generate the sql.
-
Constructor Details
-
AggGen
-
-
Method Details
-
isReady
public boolean isReady()Return true if this instance is ready to generate the sql. If false, then something went wrong as it was trying to understand the columns. -
getFactTable
-
getFactTableName
-
getSqlQuery
-
getFactCount
-
getTable
-
getTable
-
getColumn
-
getRolapStarColumnName
-
addForeignKeyToNotLostColumnUsages
-
createLost
Return a String containing the sql code to create a lost dimension table.- Returns:
- lost dimension sql code
-
insertIntoLost
Return the sql code to populate a lost dimension table from the fact table. -
createCollapsed
Return a String containing the sql code to create a collapsed dimension table.- Returns:
- collapsed dimension sql code
-
insertIntoCollapsed
Return the sql code to populate a collapsed dimension table from the fact table.
-