mondrian.olap4j
Class MondrianOlap4jCell

java.lang.Object
  extended by mondrian.olap4j.MondrianOlap4jCell
All Implemented Interfaces:
Cell

 class MondrianOlap4jCell
extends Object
implements Cell

Implementation of Cell for the Mondrian OLAP engine.

Since:
May 24, 2007
Author:
jhyde

Constructor Summary
MondrianOlap4jCell(int[] coordinates, MondrianOlap4jCellSet olap4jCellSet, RolapCell cell)
          Creates a MondrianOlap4jCell.
 
Method Summary
 ResultSet drillThrough()
           
(package private)  ResultSet drillThroughInternal(int maxRowCount, int firstRowOrdinal, List<Exp> fields, boolean extendedContext, org.apache.log4j.Logger logger, int[] rowCountSlot)
          Executes drill-through on this cell.
 CellSet getCellSet()
           
 List<Integer> getCoordinateList()
           
 double getDoubleValue()
           
 String getErrorText()
           
 String getFormattedValue()
           
 int getOrdinal()
           
 Object getPropertyValue(Property property)
           
 Object getValue()
           
 boolean isEmpty()
           
 boolean isError()
           
 boolean isNull()
           
 void setValue(Object newValue, AllocationPolicy allocationPolicy, Object... allocationArgs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getCellSet

public CellSet getCellSet()
Specified by:
getCellSet in interface Cell

getOrdinal

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

getCoordinateList

public List<Integer> getCoordinateList()
Specified by:
getCoordinateList in interface Cell

getPropertyValue

public Object getPropertyValue(Property property)
Specified by:
getPropertyValue 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

getDoubleValue

public double getDoubleValue()
                      throws OlapException
Specified by:
getDoubleValue in interface Cell
Throws:
OlapException

getErrorText

public String getErrorText()
Specified by:
getErrorText in interface Cell

getValue

public Object getValue()
Specified by:
getValue in interface Cell

getFormattedValue

public String getFormattedValue()
Specified by:
getFormattedValue in interface Cell

drillThrough

public ResultSet drillThrough()
                       throws OlapException
Specified by:
drillThrough in interface Cell
Throws:
OlapException

drillThroughInternal

ResultSet drillThroughInternal(int maxRowCount,
                               int firstRowOrdinal,
                               List<Exp> 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

setValue

public void setValue(Object newValue,
                     AllocationPolicy allocationPolicy,
                     Object... allocationArgs)
              throws OlapException
Specified by:
setValue in interface Cell
Throws:
OlapException

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads