Interface MDXDimension

增加 XMLA 相关的 Dimension 属性,继承自 @metad/ocap-core 中的 Property

<xsd:complexType name="row">
<xsd:sequence>
<xsd:element sql:field="CATALOG_NAME" name="CATALOG_NAME" type="xsd:string" minOccurs="0"/>
<xsd:element sql:field="SCHEMA_NAME" name="SCHEMA_NAME" type="xsd:string" minOccurs="0"/>
<xsd:element sql:field="CUBE_NAME" name="CUBE_NAME" type="xsd:string"/>
<xsd:element sql:field="DIMENSION_NAME" name="DIMENSION_NAME" type="xsd:string"/>
<xsd:element sql:field="DIMENSION_UNIQUE_NAME" name="DIMENSION_UNIQUE_NAME" type="xsd:string"/>
<xsd:element sql:field="DIMENSION_GUID" name="DIMENSION_GUID" type="uuid" minOccurs="0"/>
<xsd:element sql:field="DIMENSION_CAPTION" name="DIMENSION_CAPTION" type="xsd:string"/>
<xsd:element sql:field="DIMENSION_ORDINAL" name="DIMENSION_ORDINAL" type="xsd:unsignedInt"/>
<xsd:element sql:field="DIMENSION_TYPE" name="DIMENSION_TYPE" type="xsd:short"/>
<xsd:element sql:field="DIMENSION_CARDINALITY" name="DIMENSION_CARDINALITY" type="xsd:unsignedInt"/>
<xsd:element sql:field="DEFAULT_HIERARCHY" name="DEFAULT_HIERARCHY" type="xsd:string"/>
<xsd:element sql:field="DESCRIPTION" name="DESCRIPTION" type="xsd:string" minOccurs="0"/>
<xsd:element sql:field="IS_VIRTUAL" name="IS_VIRTUAL" type="xsd:boolean" minOccurs="0"/>
<xsd:element sql:field="IS_READWRITE" name="IS_READWRITE" type="xsd:boolean" minOccurs="0"/>
<xsd:element sql:field="DIMENSION_UNIQUE_SETTINGS" name="DIMENSION_UNIQUE_SETTINGS" type="xsd:int" minOccurs="0"/>
<xsd:element sql:field="DIMENSION_MASTER_UNIQUE_NAME" name="DIMENSION_MASTER_UNIQUE_NAME" type="xsd:string" minOccurs="0"/>
<xsd:element sql:field="DIMENSION_IS_VISIBLE" name="DIMENSION_IS_VISIBLE" type="xsd:boolean" minOccurs="0"/>
<xsd:element sql:field="HIERARCHIES" name="HIERARCHIES" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>

Sample:

<row>
<CATALOG_NAME>FoodMart</CATALOG_NAME>
<SCHEMA_NAME>FoodMart</SCHEMA_NAME>
<CUBE_NAME>HR</CUBE_NAME>
<DIMENSION_NAME>Department</DIMENSION_NAME>
<DIMENSION_UNIQUE_NAME>[Department]</DIMENSION_UNIQUE_NAME>
<DIMENSION_CAPTION>Department</DIMENSION_CAPTION>
<DIMENSION_ORDINAL>6</DIMENSION_ORDINAL>
<DIMENSION_TYPE>3</DIMENSION_TYPE>
<DIMENSION_CARDINALITY>13</DIMENSION_CARDINALITY>
<DEFAULT_HIERARCHY>[Department]</DEFAULT_HIERARCHY>
<DESCRIPTION>HR Cube - Department Dimension</DESCRIPTION>
<IS_VIRTUAL>false</IS_VIRTUAL>
<IS_READWRITE>false</IS_READWRITE>
<DIMENSION_UNIQUE_SETTINGS>0</DIMENSION_UNIQUE_SETTINGS>
<DIMENSION_IS_VISIBLE>true</DIMENSION_IS_VISIBLE>
</row>
interface MDXDimension {
    __id__?: string;
    caption?: string;
    catalogName?: string;
    column?: string;
    cubeName: string;
    dataType?: string;
    defaultHierarchy: string;
    description?: string;
    dimension?: string;
    dimensionCaption: string;
    dimensionCardinality: number;
    dimensionGuid?: string;
    dimensionIsVisible?: boolean;
    dimensionMasterUniqueName?: string;
    dimensionName: string;
    dimensionOrdinal: number;
    dimensionType: DIMENSION_TYPE;
    dimensionUniqueName: string;
    dimensionUniqueSettings?: number;
    entity?: string;
    expression?: string;
    foreignKey?: string;
    formatter?: string;
    hierarchies?: MDXHierarchy[];
    hierarchyLevelFor?: string;
    hierarchyNodeFor?: string;
    hierarchyParentNodeFor?: string;
    isReadwrite?: boolean;
    isVirtual?: boolean;
    keyExpression?: SQLExpression;
    memberCaption?: string;
    members?: Member[];
    name: string;
    properties?: EntityProperty[];
    role?: AggregationRole;
    rt?: boolean;
    schemaName?: string;
    semantic?: Semantics;
    semantics?: {
        formatter?: string;
        semantic?: Semantics;
    };
    text?: string | EntityProperty;
    type?: string;
    uniqueName?: string;
    unit?: string | EntityProperty;
    visible?: boolean;
}

Hierarchy

Properties

__id__?: string
caption?: string

Caption of dimension

catalogName?: string
column?: string

The column of Dimension table for this property

cubeName: string
dataType?: string
defaultHierarchy: string
description?: string
dimension?: string
dimensionCaption: string
dimensionCardinality: number
dimensionGuid?: string
dimensionIsVisible?: boolean
dimensionMasterUniqueName?: string
dimensionName: string
dimensionOrdinal: number
dimensionType: DIMENSION_TYPE
dimensionUniqueName: string
dimensionUniqueSettings?: number
entity?: string

所属的 Entity

expression?: string
foreignKey?: string

The foreignKey of Fact table for this property

formatter?: string

Deprecated

use semantics

hierarchies?: MDXHierarchy[]
hierarchyLevelFor?: string

Deprecated

hierarchyNodeFor?: string

Deprecated

hierarchyParentNodeFor?: string

Deprecated

isReadwrite?: boolean
isVirtual?: boolean
keyExpression?: SQLExpression
memberCaption?: string

The caption field of members in this property

members?: Member[]

如当 Dimension = "Measures" 时可以设置 members 为 ["Gross Margin", "Discount"] 等度量字段名 也可以为 dimension 设置固定的成员

name: string
properties?: EntityProperty[]

维度的属性字段

role?: AggregationRole

Property role

rt?: boolean

Property is in Runtime only, not in Semantic Model

schemaName?: string
semantic?: Semantics

Deprecated

use semantics

semantics?: {
    formatter?: string;
    semantic?: Semantics;
}

Type declaration

  • Optional formatter?: string
  • Optional semantic?: Semantics
text?: string | EntityProperty

Deprecated

use memberCaption

type?: string

维度类型, 或字段 DB 类型

uniqueName?: string
unit?: string | EntityProperty
visible?: boolean

Visible Property

Generated using TypeDoc