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 |
---|---|
long |
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.
|
long |
getQueryCardinality(Dialect dialect,
DataSource dataSource,
String sql,
Execution execution)
Returns an estimate of the number of rows returned by a query.
|
long |
getTableCardinality(Dialect dialect,
DataSource dataSource,
String catalog,
String schema,
String table,
Execution execution)
Returns an estimate of the number of rows in a table.
|
long getTableCardinality(Dialect dialect, DataSource dataSource, String catalog, String schema, String table, Execution execution)
dialect
- DialectdataSource
- Data sourcecatalog
- Catalog nameschema
- Schema nametable
- Table nameexecution
- Executionlong getQueryCardinality(Dialect dialect, DataSource dataSource, String sql, Execution execution)
dialect
- DialectdataSource
- Data sourcesql
- Query, e.g. "select * from customers where age < 20"execution
- Executionlong 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
- ExecutionCopyright © 2018 Hitachi Vantara. All rights reserved.