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>
  • 相关阅读:
    浅谈Vue基础知识(二)
    浅谈Vue基础知识(一)
    ES 6
    网易DBA私享会分享会笔记2
    网易DBA私享会分享会笔记1
    centos6.5适用的国内yum源:网易、搜狐
    如何去除 ckeditor 上传图片后在原码中留下的 style="width: 100%;height:100px"之类的代码呢?
    关于json.ajax ,php的那点事
    去掉所有的html标签
    [CentOS 0010] CentOS 配置mysql允许远程登录
  • 原文地址:https://www.cnblogs.com/wjm956/p/7121294.html
Copyright © 2011-2022 走看看