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>
  • 相关阅读:
    在intellij 下用java spring + Mysql + Hibernate 开发的第一个数据库demo
    推荐一个找到一个比较好的spring,java学习教程
    ReactiveCocoa 中signal(operation) then与doNext的区别
    grunt
    Swiper.js wap app 图片滑动效果
    less 路径 写法
    html5 input placeholder 占位符 输入框提示文本
    js 大小写转换
    css 修改选中文字的颜色
    keydown keypress keyup textInput
  • 原文地址:https://www.cnblogs.com/wjm956/p/7121294.html
Copyright © 2011-2022 走看看