Package mondrian.olap4j
Class MondrianOlap4jCell
- java.lang.Object
-
- mondrian.olap4j.MondrianOlap4jCell
-
-
Constructor Summary
Constructors Constructor Description MondrianOlap4jCell(int[] coordinates, MondrianOlap4jCellSet olap4jCellSet, RolapCell cell)Creates a MondrianOlap4jCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetdrillThrough()(package private) ResultSetdrillThroughInternal(int maxRowCount, int firstRowOrdinal, List<OlapElement> fields, boolean extendedContext, org.apache.log4j.Logger logger, int[] rowCountSlot)Executes drill-through on this cell.CellSetgetCellSet()List<Integer>getCoordinateList()doublegetDoubleValue()StringgetErrorText()StringgetFormattedValue()intgetOrdinal()ObjectgetPropertyValue(Property property)ObjectgetValue()booleanisEmpty()booleanisError()booleanisNull()voidsetValue(Object newValue, AllocationPolicy allocationPolicy, Object... allocationArgs)
-
-
-
Field Detail
-
cell
final RolapCell cell
-
-
Constructor Detail
-
MondrianOlap4jCell
MondrianOlap4jCell(int[] coordinates, MondrianOlap4jCellSet olap4jCellSet, RolapCell cell)Creates a MondrianOlap4jCell.- Parameters:
coordinates- Coordinatesolap4jCellSet- Cell setcell- Cell in native Mondrian representation
-
-
Method Detail
-
getCellSet
public CellSet getCellSet()
- Specified by:
getCellSetin interfaceCell
-
getOrdinal
public int getOrdinal()
- Specified by:
getOrdinalin interfaceCell
-
getCoordinateList
public List<Integer> getCoordinateList()
- Specified by:
getCoordinateListin interfaceCell
-
getPropertyValue
public Object getPropertyValue(Property property)
- Specified by:
getPropertyValuein interfaceCell
-
getDoubleValue
public double getDoubleValue() throws OlapException- Specified by:
getDoubleValuein interfaceCell- Throws:
OlapException
-
getErrorText
public String getErrorText()
- Specified by:
getErrorTextin interfaceCell
-
getFormattedValue
public String getFormattedValue()
- Specified by:
getFormattedValuein interfaceCell
-
drillThrough
public ResultSet drillThrough() throws OlapException
- Specified by:
drillThroughin interfaceCell- Throws:
OlapException
-
drillThroughInternal
ResultSet drillThroughInternal(int maxRowCount, int firstRowOrdinal, 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 unlimitedfirstRowOrdinal- Ordinal of row to skip to (1-based), or 0 to start from beginningfields- 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 hererowCountSlot- 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:
setValuein interfaceCell- Throws:
OlapException
-
-