• XML Schema 基本结构


    <?xml version='1.0'?>
    <Schema name="cangchuSchema" metamodelVersion="4.0">
        <PhysicalSchema>
            <Table name="highway_toll">
                <Key>
                    <Column name="uid"/>
                </Key>
            </Table>
            <Table name="dim_date">
                <Key>
                    <Column name="date_sk"/>
                </Key>
            </Table>
            <Link source="highway_toll" target="dim_date">
            <ForeignKey>
            <Column name="date_sk"/>
            </ForeignKey>
            </Link>
        </PhysicalSchema>
        <Cube name="YonghuCube" caption="高速">
            <Dimensions>
                <Dimension key="id1" table="highway_toll" name="DimItem" caption="DIM">
                    <Attributes>
                        
                        <Attribute name="skr_id" keyColumn="skr_id" hasHierarchy="false" caption="收款人"/>
                        <Attribute name="id1" keyColumn="uid" hasHierarchy="false"/>
                    </Attributes>
                    <Hierarchies>
                        <Hierarchy name="Type2" allMemberName="All Path" caption="">
                        <Level attribute="skr_id" caption="收款人"/>
                        </Hierarchy>
                    </Hierarchies>
                </Dimension>
                <Dimension name="Date" table="dim_date" type="TIME" key="ID" caption="时间">
                    <Attributes>
                        <Attribute name="ID" keyColumn="date_sk" hasHierarchy="false"/>
                        <Attribute name="Year" keyColumn="year_number" levelType="TimeYears" hasHierarchy="false"/>
                        <Attribute name="Quarter" levelType="TimeQuarters" hasHierarchy="false">
                            <Key>
                                <Column name="year_number"/>
                                <Column name="quarter_number"/>
                            </Key>
                            <Name>
                                <Column name="quarter_name"/>
                            </Name>
                        </Attribute>
                        <Attribute name="Month" levelType="TimeMonths" hasHierarchy="false">
                            <Key>
                                <Column name="year_number"/>
                                <Column name="month_number"/>
                            </Key>
                            <Name>
                                <Column name="month_name"/>
                            </Name>
                        </Attribute>
                        <Attribute name="Day" levelType="TimeDays" hasHierarchy="false">
                            <Key>
                                <Column name="year_number"/>
                                <Column name="month_number"/>
                                <Column name="day_of_month_number"/>
                            </Key>
                            <Name>
                                <Column name="day_of_month_number"/>
                            </Name>
                        </Attribute>
                    </Attributes>
                    <Hierarchies>
                        <Hierarchy name="Time" hasAll="true">
                            <Level attribute="Year" caption="年份">
                                <Annotations>
                                    <Annotation name="AnalyzerDateFormat">[yyyy]</Annotation>
                                </Annotations>
                            </Level>
                            <Level attribute="Quarter" caption="季度">
                                <Annotations>
                                    <Annotation name="AnalyzerDateFormat">[yyyy].[Qq]</Annotation>
                                </Annotations>
                            </Level>
                            <Level attribute="Month" caption="月份">
                                <Annotations>
                                    <Annotation name="AnalyzerDateFormat">[yyyy].[Qq].[mm]</Annotation>
                                </Annotations>
                            </Level>
                            <Level attribute="Day" caption="日">
                                <Annotations>
                                    <Annotation name="AnalyzerDateFormat">[yyyy].[Qq].[mm].[dd]</Annotation>
                                </Annotations>
                            </Level>
                        </Hierarchy>
                    </Hierarchies>
                </Dimension>
            </Dimensions>
            <MeasureGroups>
                <MeasureGroup name="Count" table="highway_toll">
                    <Measures>
                        <Measure name="Measure1" column="ys" aggregator="count" caption="缴款应收" formatString="Standard"/>
                        <Measure name="Measure2" column="ss" aggregator="sum" caption="缴款实收" formatString="Standard"/>
                    </Measures>
                    <DimensionLinks>
                        <FactLink dimension="DimItem" />
                        <ForeignKeyLink dimension="Date" foreignKeyColumn="createDate"/>
                    </DimensionLinks>
                </MeasureGroup>
            </MeasureGroups>
        </Cube>
    </Schema>
  • 相关阅读:
    主要几种通信协议的性能比较(转载)
    mina与spring集成(翻译)
    DF标志和串传送指令
    编写不会产生除法溢出的子程序
    转: 匈牙利标记法
    转:四种方式实现从尾到头输出单向链表(链表逆序打印)
    汇编语言注释标记符
    汇编将数据以十进制格式显示在屏幕上
    转:汇编寄存器的使用
    蒙特卡罗算法 求数组主元素
  • 原文地址:https://www.cnblogs.com/wjm956/p/7121294.html
Copyright © 2020-2023  润新知