olapelement.java
来自「数据仓库展示程序」· Java 代码 · 共 64 行
JAVA
64 行
/*
// $Id: //open/mondrian/src/main/mondrian/olap/OlapElement.java#10 $
// 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.
// (C) Copyright 1998-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 21 January, 1999
*/
package mondrian.olap;
import java.io.PrintWriter;
/**
* An <code>OlapElement</code> is a catalog object (dimension, hierarchy, level,
* member). It is also a node in a parse tree.
**/
public interface OlapElement extends Exp {
String getUniqueName();
String getName();
String getDescription();
void unparse(PrintWriter pw);
void accept(Visitor visitor);
void childrenAccept(Visitor visitor);
/** Looks up a child element, returning null if it does not exist. */
OlapElement lookupChild(SchemaReader schemaReader, String s);
/** Returns the name of this element qualified by its class, for example
* "hierarchy 'Customers'". **/
String getQualifiedName();
String getCaption();
Hierarchy getHierarchy();
/**
* Returns the dimension of a this expression, or null if no dimension is
* defined. Applicable only to set expressions.
*
* <p>Example 1:
* <blockquote><pre>
* [Sales].children
* </pre></blockquote>
* has dimension <code>[Sales]</code>.</p>
*
* <p>Example 2:
* <blockquote><pre>
* order(except([Promotion Media].[Media Type].members,
* {[Promotion Media].[Media Type].[No Media]}),
* [Measures].[Unit Sales], DESC)
* </pre></blockquote>
* has dimension [Promotion Media].</p>
*
* <p>Example 3:
* <blockquote><pre>
* CrossJoin([Product].[Product Department].members,
* [Gender].members)
* </pre></blockquote>
* has no dimension (well, actually it is [Product] x [Gender], but we
* can't represent that, so we return null);</p>
**/
Dimension getDimension();
}
// End OlapElement.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?