001    /*
002    // $Id: //open/mondrian/src/main/mondrian/olap/Result.java#6 $
003    // This software is subject to the terms of the Common Public License
004    // Agreement, available at the following URL:
005    // http://www.opensource.org/licenses/cpl.html.
006    // Copyright (C) 2001-2002 Kana Software, Inc.
007    // Copyright (C) 2001-2005 Julian Hyde and others
008    // All Rights Reserved.
009    // You must accept the terms of that agreement to use this software.
010    //
011    // jhyde, 6 August, 2001
012    */
013    
014    package mondrian.olap;
015    
016    import java.io.PrintWriter;
017    
018    /**
019     * A <code>Result</code> is the result of running an MDX query. See {@link
020     * Connection#execute}.
021     *
022     * @author jhyde
023     * @since 6 August, 2001
024     * @version $Id: //open/mondrian/src/main/mondrian/olap/Result.java#6 $
025     */
026    public interface Result {
027        /** Returns the query which generated this result. */
028        Query getQuery();
029        /** Returns the non-slicer axes. */
030        Axis[] getAxes();
031        /** Returns the slicer axis. */
032        Axis getSlicerAxis();
033        /** Returns the cell at a given set of coordinates. For example, in a result
034         * with 4 columns and 6 rows, the top-left cell has coordinates [0, 0],
035         * and the bottom-right cell has coordinates [3, 5]. */
036        Cell getCell(int[] pos);
037        void print(PrintWriter pw);
038        void close();
039    }
040    
041    // End Result.java