hierarchy.java
来自「数据仓库展示程序」· Java 代码 · 共 61 行
JAVA
61 行
/*
// $Id: //open/mondrian/src/main/mondrian/olap/Hierarchy.java#7 $
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// Copyright (C) 1999-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 2 March, 1999
*/
package mondrian.olap;
/**
* A <code>Hierarchy</code> is a set of members, organized into levels.
**/
public interface Hierarchy extends OlapElement {
/**
* Returns the dimension this hierarchy belongs to.
*/
Dimension getDimension();
/**
* Returns the levels in this hierarchy.
*
* <p>If a hierarchy is subject to access-control, some of the levels may
* not be visible; use {@link SchemaReader#getHierarchyLevels} instead.
*
* @post return != null
*/
Level[] getLevels();
/**
* Returns the default member of this hierarchy.
*
* <p>If a hierarchy is subject to access-control, the default member may
* not be visible, so use {@link SchemaReader#getHierarchyDefaultMember}.
*
* @post return != null
*/
Member getDefaultMember();
/**
* Returns a special member representing the "null" value. This never
* occurs on an axis, but may occur if functions such as <code>Lead</code>,
* <code>NextMember</code> and <code>ParentMember</code> walk off the end
* of the hierarchy.
*
* @post return != null
*/
Member getNullMember();
boolean hasAll();
/**
* Creates a member of this hierarchy. If this is the measures hierarchy, a
* calculated member is created, and <code>formula</code> must not be null.
**/
Member createMember(Member parent, Level level, String name, Formula formula);
}
// End Hierarchy.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?