【问题标题】:how to find shared dimensions in two or more cubes in Mondrian如何在蒙德里安的两个或多个立方体中找到共享维度
【发布时间】:2013-07-02 00:41:58
【问题描述】:

我有很多立方体 A B C ,...

我想通过蒙德里安找到这些立方体之间的所有共同维度

注意每个多维数据集中的共享维度可能有不同的名称,因此使用 of

cube.getDimensions().getUniqeName()
Or 
cube.getDimensions().getName()

没用

【问题讨论】:

    标签: olap olap-cube mondrian rolap olap4j


    【解决方案1】:

    您需要使用 olap4j API。首先从 Mondrian 实例获取 olap4j 连接。之后,如果您调用,Schema 元数据对象可以为您提供所需的内容:

    org.olap4j.Schema.getSharedDimensions()
    

    有关 API 的更多详细信息,请访问 available here

    【讨论】:

    • 但它给了我所有的共享维度......我需要两个立方体之间的共享维度,并且由于每个立方体中使用的名称不同,这些 sharedDimensions 没有帮助
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多