KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > rolap > RolapStoredMeasure


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/rolap/RolapStoredMeasure.java#15 $
3 // This software is subject to the terms of the Common Public License
4 // Agreement, available at the following URL:
5 // http://www.opensource.org/licenses/cpl.html.
6 // Copyright (C) 2001-2002 Kana Software, Inc.
7 // Copyright (C) 2001-2006 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 10 August, 2001
12 */

13
14 package mondrian.rolap;
15 import mondrian.olap.MondrianDef;
16
17 /**
18  * A measure which is implemented by a SQL column or SQL expression (as opposed
19  * to a {@link RolapCalculatedMember}.
20  *
21  * <p>Implemented by {@link RolapBaseCubeMeasure} and
22  * {@link RolapVirtualCubeMeasure}.
23  *
24  * @author jhyde
25  * @since 10 August, 2001
26  * @version $Id: //open/mondrian/src/main/mondrian/rolap/RolapStoredMeasure.java#15 $
27  */

28 interface RolapStoredMeasure extends RolapMeasure {
29     /**
30      * Returns the cube this measure belongs to.
31      */

32     RolapCube getCube();
33
34     /**
35      * Returns the column which holds the value of the measure.
36      */

37     MondrianDef.Expression getMondrianDefExpression();
38
39     /**
40      * Returns the aggregation function which rolls up this measure: "SUM",
41      * "COUNT", etc.
42      */

43     RolapAggregator getAggregator();
44
45     /**
46      * Returns the {@link mondrian.rolap.RolapStar.Measure} from which this
47      * member is computed. Untyped, because another implementation might store
48      * it somewhere else.
49      */

50     Object JavaDoc getStarMeasure();
51 }
52
53 // End RolapStoredMeasure.java
54
Popular Tags