zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    blender 2.8 [学习笔记-033] 编辑模式-滑动边线
    blender 2.8 [学习笔记-032] 编辑模式-随机(光滑)
    blender 2.8 [学习笔记-031] 编辑模式-光滑
    blender 2.8 [学习笔记-030] 编辑模式-旋转
    blender 2.8 [学习笔记-029] 编辑模式-多边形建形
    TurtleBot3使用课程-第一节a(北京智能佳)
    ViperX 300 Robot Arm 机械臂 “5自由度和360°全方位旋转”
    TurtleBot 3 & 2i ROS开源实验平台
    在人工智能实验平台下对主流舵机的简介
    走进车联网,你将更深入地了解无人车和自动驾驶技术
  • 原文地址:https://www.cnblogs.com/wjm956/p/7121294.html
Copyright © 2011-2022 走看看