Package mondrian.rolap.aggmatcher
Class AggStar.FactTable
- java.lang.Object
-
- mondrian.rolap.aggmatcher.AggStar.Table
-
- mondrian.rolap.aggmatcher.AggStar.FactTable
-
- Enclosing class:
- AggStar
public class AggStar.FactTable extends AggStar.Table
This is an aggregate fact table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AggStar.FactTable.Measure
This is a Column that is a Measure (contains an aggregator).-
Nested classes/interfaces inherited from class mondrian.rolap.aggmatcher.AggStar.Table
AggStar.Table.Column, AggStar.Table.ForeignKey, AggStar.Table.JoinCondition, AggStar.Table.Level
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.aggmatcher.AggStar.Table
children, levels
-
-
Constructor Summary
Constructors Constructor Description FactTable(java.lang.String name, MondrianDef.Relation relation, int totalColumnSize, int numberOfRows)
FactTable(JdbcSchema.Table aggTable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AggStar.Table.Column>
getColumns()
Returns a list of the columns in this table.AggStar.Table.JoinCondition
getJoinCondition()
java.util.List<AggStar.FactTable.Measure>
getMeasures()
Returns a list of all measures.int
getNumberOfRows()
Get the number of rows in this aggregate table.AggStar.Table
getParent()
Get the parent table (returns null if this table is a FactTable).int
getTotalColumnSize()
Get the total size of all columns in a row.int
getVolume()
Get the volume of the table (now of rows * size of a row).boolean
hasJoinCondition()
Return true if this table has a join condition (only DimTables have join conditions, FactTable instances do not).boolean
hasMeasures()
Return true it table has measuresboolean
hasParent()
Return true if this table has a parent table (FactTable instances do not have parent tables, all other do).void
print(java.io.PrintWriter pw, java.lang.String prefix)
(package private) void
setNumberOfRows(int numberOfRows)
This is for testing ONLY.-
Methods inherited from class mondrian.rolap.aggmatcher.AggStar.Table
addLevel, addTable, addToFrom, convertChildren, convertColumns, convertTable, findDescendant, getAggStar, getChildTables, getLevels, getName, getRelation, getSqlQuery, hasChildren, hasLevels, toString
-
-
-
-
Constructor Detail
-
FactTable
FactTable(JdbcSchema.Table aggTable)
-
FactTable
FactTable(java.lang.String name, MondrianDef.Relation relation, int totalColumnSize, int numberOfRows)
-
-
Method Detail
-
getParent
public AggStar.Table getParent()
Description copied from class:AggStar.Table
Get the parent table (returns null if this table is a FactTable).- Specified by:
getParent
in classAggStar.Table
-
hasParent
public boolean hasParent()
Description copied from class:AggStar.Table
Return true if this table has a parent table (FactTable instances do not have parent tables, all other do).- Specified by:
hasParent
in classAggStar.Table
-
hasJoinCondition
public boolean hasJoinCondition()
Description copied from class:AggStar.Table
Return true if this table has a join condition (only DimTables have join conditions, FactTable instances do not).- Specified by:
hasJoinCondition
in classAggStar.Table
-
getJoinCondition
public AggStar.Table.JoinCondition getJoinCondition()
- Specified by:
getJoinCondition
in classAggStar.Table
-
getVolume
public int getVolume()
Get the volume of the table (now of rows * size of a row).
-
getTotalColumnSize
public int getTotalColumnSize()
Get the total size of all columns in a row.
-
getNumberOfRows
public int getNumberOfRows()
Get the number of rows in this aggregate table.
-
setNumberOfRows
void setNumberOfRows(int numberOfRows)
This is for testing ONLY.
-
getMeasures
public java.util.List<AggStar.FactTable.Measure> getMeasures()
Returns a list of all measures.
-
hasMeasures
public boolean hasMeasures()
Return true it table has measures
-
getColumns
public java.util.List<AggStar.Table.Column> getColumns()
Returns a list of the columns in this table.
-
print
public void print(java.io.PrintWriter pw, java.lang.String prefix)
- Specified by:
print
in classAggStar.Table
-
-