KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mondrian > olap > Result


1 /*
2 // $Id: //open/mondrian/src/main/mondrian/olap/Result.java#6 $
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-2005 Julian Hyde and others
8 // All Rights Reserved.
9 // You must accept the terms of that agreement to use this software.
10 //
11 // jhyde, 6 August, 2001
12 */

13
14 package mondrian.olap;
15
16 import java.io.PrintWriter JavaDoc;
17
18 /**
19  * A <code>Result</code> is the result of running an MDX query. See {@link
20  * Connection#execute}.
21  *
22  * @author jhyde
23  * @since 6 August, 2001
24  * @version $Id: //open/mondrian/src/main/mondrian/olap/Result.java#6 $
25  */

26 public interface Result {
27     /** Returns the query which generated this result. */
28     Query getQuery();
29     /** Returns the non-slicer axes. */
30     Axis[] getAxes();
31     /** Returns the slicer axis. */
32     Axis getSlicerAxis();
33     /** Returns the cell at a given set of coordinates. For example, in a result
34      * with 4 columns and 6 rows, the top-left cell has coordinates [0, 0],
35      * and the bottom-right cell has coordinates [3, 5]. */

36     Cell getCell(int[] pos);
37     void print(PrintWriter JavaDoc pw);
38     void close();
39 }
40
41 // End Result.java
42
Popular Tags