Mondrain Schema Basic Elements
< Schema > is the topmost element, mondrian version 4.0 and above must be added, metamodelVersion = '4.0' attribute
Physical elements
< PhysicalSchema > is used to define the physical table used in the model, which can contain the following
< Table > uses a table directly
< Query > Use the result set of the query, which can be obtained from multiple tables
< InlineTable > inline table
< Link > connects two tables
< ExpressionView > SQL expression collection
< Column > A column associated with the SQL expression
< SQL > The SQL dialect expression for a particular database.
The top-level element of the < Rows > row
< Row > inlineTable The row of the dataset of the inline table
< Value > inlineTable The value of one column of the dataset in the inline table
Logical elements
< Cube > The primary business view for analysis, a cube is a collection of dimensions and measures.
< Dimensions > A collection of dimensions
< Dimension > dimension definition
Data items in the < Attribute > dimension
< Hierarchy > Hierarchy element
<Levels>
< Level > Level
< Key > This is the primary key of one or more columns of attributes, which can uniquely determine an attribute
< Name > This is an attribute name
The title of the < Caption > attribute
<OrderBy> 用于排序的“属性”的成员的列
<Property> 成员的属性 该定义是对一个层次或级别,但该属性将可提供给所有成员。
<MeasureGroups> 指标组集合
<MeasureGroup> 在事实表存储的指标
<Measures>
<Measure>
<DimensionLinks> 用于定义一个关联 MeasureGroups 和 Dimensions
<ForeignKeyLink> 定义一个外键,使用事实表中的一个字段
<FactLink>
<CopyLink>
<NoLink>
<CalculatedMembers> 计算成员
<NamedSet> 有一个MDX返回的一组值,作为一个数据集
<Closure> 将层次的父子关系影射到一个表上
Access control
<Role> 一种访问控制配置文件
<SchemaGrant> Schema的权限
<CubeGrant> Cube的权限
<HierarchyGrant> 层次的权限
<Union> 一组权限的组合
Extensions
<UserDefinedFunction> 用户自定义函数
<Script> 通过脚本程序实现用户定义函数
Miscellaneous
<Annotation> 用户自定义属性关联到一个元数据中
<CalculatedMemberProperty> 计算成员属性
<Formula>
<MeasureExpression> 通过sql表达式计算度量