public class MondrianSchemaLoader extends Object implements SchemaLoader
The implementation loads a star cube from a mondrian cube.
| Modifier and Type | Class and Description |
|---|---|
static class |
MondrianSchemaLoader.MondrianSchemaLoaderParameter
Enumeration of parameters accepted by MondrianSchemaLoader.
|
| Constructor and Description |
|---|
MondrianSchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
Schema |
createSchema(Map<Parameter,Object> parameterValues) |
static double |
estimateAggregateCount(double[] cardinalities,
double factCount)
Estimates the number of rows in an aggregate table, given the
cardinalities of its columns (assumed independent) and the number of
rows in the fact table.
|
static double |
estimateAggregateCount(double comboCount,
double factCount)
Estimates the number of rows in an aggregate table, given the
product of the cardinalities of its columns (assumed independent) and the
number of rows in the fact table.
|
String |
getName() |
List<Parameter> |
getParameters() |
protected List<MondrianSchemaValidator> |
loadValidators(Map<Parameter,Object> parameterValues) |
List<ValidationMessage> |
validateSchema(Map<Parameter,Object> parameterValues) |
public Schema createSchema(Map<Parameter,Object> parameterValues)
createSchema in interface SchemaLoaderpublic List<ValidationMessage> validateSchema(Map<Parameter,Object> parameterValues)
validateSchema in interface SchemaLoaderprotected List<MondrianSchemaValidator> loadValidators(Map<Parameter,Object> parameterValues) throws ClassNotFoundException, InstantiationException, IllegalAccessException
public List<Parameter> getParameters()
getParameters in interface Componentpublic static double estimateAggregateCount(double[] cardinalities,
double factCount)
cardinalities - Array of column cardinalitiesfactCount - Number of rows in fact tablepublic static double estimateAggregateCount(double comboCount,
double factCount)
comboCount - Product of column cardinalitiesfactCount - Number of rows in fact tableCopyright © 2006–2016 Julian Hyde. All rights reserved.