KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > calc > HierarchyCalc


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/calc/HierarchyCalc.java#5 $
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) 2006-2007 Julian Hyde
7 // All Rights Reserved.
8 // You must accept the terms of that agreement to use this software.
9 */

10 package mondrian.calc;
11
12 import mondrian.olap.Evaluator;
13 import mondrian.olap.Hierarchy;
14
15 /**
16  * Expression which yields a {@link mondrian.olap.Hierarchy}.
17  *
18  * <p>When implementing this interface, it is convenient to extend
19  * {@link mondrian.calc.impl.AbstractHierarchyCalc}, but it is not required.
20  *
21  * @author jhyde
22  * @version $Id: //open/mondrian/src/main/mondrian/calc/HierarchyCalc.java#5 $
23  * @since Sep 26, 2005
24  */

25 public interface HierarchyCalc extends Calc {
26     /**
27      * Evaluates this expression to yield a hierarchy.
28      *
29      * <p>Never returns null.
30      *
31      * @param evaluator Evaluation context
32      * @return a hierarchy
33      */

34     Hierarchy evaluateHierarchy(Evaluator evaluator);
35 }
36
37 // End HierarchyCalc.java
38
Popular Tags