Package org.pentaho.aggdes.model
Interface Schema
public interface Schema
Star schema.
A star schema is a collection of tables: a central fact table, and several dimension tables. Each table except the fact table is joined to a parent table.
-
Method Summary
Modifier and TypeMethodDescriptiongenerateAggregateSql(Aggregate aggregate, List<String> columnNameList) Converts an aggregate to a SELECT statement.Returns a list of all attributes in this schema.Returns the dialect of the underlying database.Returns a list ofDimensionobjects in the schema;Returns a list ofMeasureobjects in the schema.Returns the statistics provider for this Schema.Returns a list of allTableobjects in the schema.
-
Method Details
-
getTables
Returns a list of allTableobjects in the schema.- Returns:
- list of tables
-
getMeasures
Returns a list ofMeasureobjects in the schema.- Returns:
- list of measures
-
getDimensions
Returns a list ofDimensionobjects in the schema;- Returns:
-
getAttributes
Returns a list of all attributes in this schema.- Returns:
- list of all attributes in all tables
-
getStatisticsProvider
StatisticsProvider getStatisticsProvider()Returns the statistics provider for this Schema.- Returns:
- statistics provider
-
getDialect
Dialect getDialect()Returns the dialect of the underlying database.- Returns:
- dialect
-
generateAggregateSql
Converts an aggregate to a SELECT statement. Uses the schema's SQL dialect.- Parameters:
aggregate- AggregatecolumnNameList- List of column names, one per attribute- Returns:
- SQL SELECT statement to populate aggregate
-