public interface StatisticsProvider
Mondrian generally finds statistics providers via the
 Dialect.getStatisticsProviders() method on the dialect object for the
 current connection. The default implementation of that method looks first at
 the "mondrian.statistics.providers.DATABASE" property (substituting the
 current database name, e.g. MYSQL or ORACLE, for DATABASE), then at
 the "mondrian.statistics.providers"
 property.
JdbcStatisticsProvider, 
SqlStatisticsProvider| Modifier and Type | Method and Description | 
|---|---|
int | 
getColumnCardinality(Dialect dialect,
                    DataSource dataSource,
                    String catalog,
                    String schema,
                    String table,
                    String column,
                    Execution execution)
Returns an estimate of the number of rows in a table. 
 | 
int | 
getQueryCardinality(Dialect dialect,
                   DataSource dataSource,
                   String sql,
                   Execution execution)
Returns an estimate of the number of rows returned by a query. 
 | 
int | 
getTableCardinality(Dialect dialect,
                   DataSource dataSource,
                   String catalog,
                   String schema,
                   String table,
                   Execution execution)
Returns an estimate of the number of rows in a table. 
 | 
int getTableCardinality(Dialect dialect, DataSource dataSource, String catalog, String schema, String table, Execution execution)
dialect - DialectdataSource - Data sourcecatalog - Catalog nameschema - Schema nametable - Table nameexecution - Executionint getQueryCardinality(Dialect dialect, DataSource dataSource, String sql, Execution execution)
dialect - DialectdataSource - Data sourcesql - Query, e.g. "select * from customers where age < 20"execution - Executionint getColumnCardinality(Dialect dialect, DataSource dataSource, String catalog, String schema, String table, String column, Execution execution)
dialect - DialectdataSource - Data sourcecatalog - Catalog nameschema - Schema nametable - Table namecolumn - Column nameexecution - Execution