Class MondrianOlap4jCell

  • All Implemented Interfaces:
    Cell

    class MondrianOlap4jCell
    extends java.lang.Object
    implements Cell
    Implementation of Cell for the Mondrian OLAP engine.
    Since:
    May 24, 2007
    Author:
    jhyde
    • Constructor Detail

      • MondrianOlap4jCell

        MondrianOlap4jCell​(int[] coordinates,
                           MondrianOlap4jCellSet olap4jCellSet,
                           RolapCell cell)
        Creates a MondrianOlap4jCell.
        Parameters:
        coordinates - Coordinates
        olap4jCellSet - Cell set
        cell - Cell in native Mondrian representation
    • Method Detail

      • getOrdinal

        public int getOrdinal()
        Specified by:
        getOrdinal in interface Cell
      • getCoordinateList

        public java.util.List<java.lang.Integer> getCoordinateList()
        Specified by:
        getCoordinateList in interface Cell
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Cell
      • isError

        public boolean isError()
        Specified by:
        isError in interface Cell
      • isNull

        public boolean isNull()
        Specified by:
        isNull in interface Cell
      • getErrorText

        public java.lang.String getErrorText()
        Specified by:
        getErrorText in interface Cell
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in interface Cell
      • getFormattedValue

        public java.lang.String getFormattedValue()
        Specified by:
        getFormattedValue in interface Cell
      • drillThroughInternal

        java.sql.ResultSet drillThroughInternal​(int maxRowCount,
                                                int firstRowOrdinal,
                                                java.util.List<OlapElement> fields,
                                                boolean extendedContext,
                                                org.apache.log4j.Logger logger,
                                                int[] rowCountSlot)
                                         throws OlapException
        Executes drill-through on this cell.

        Not a part of the public API. Package-protected because this method also implements the DRILLTHROUGH statement.

        Parameters:
        maxRowCount - Maximum number of rows to retrieve, <= 0 if unlimited
        firstRowOrdinal - Ordinal of row to skip to (1-based), or 0 to start from beginning
        fields - List of fields to return, expressed as MDX expressions.
        extendedContext - If true, add non-constraining columns to the query for levels below each current member. This additional context makes the drill-through queries easier for humans to understand.
        logger - Logger. If not null and debug is enabled, log SQL here
        rowCountSlot - Slot into which the number of fact rows is written
        Returns:
        Result set
        Throws:
        OlapException - on error