|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.RolapCell
public class RolapCell
RolapCell implements Cell within a
RolapResult.
| Field Summary | |
|---|---|
protected RolapResult.CellInfo |
ci
|
protected int[] |
pos
|
| Constructor Summary | |
|---|---|
RolapCell(RolapResult result,
int[] pos,
RolapResult.CellInfo ci)
Creates a RolapCell. |
|
| Method Summary | |
|---|---|
boolean |
canDrillThrough()
Returns whether it is possible to drill through this cell. |
static RolapCube |
chooseDrillThroughCube(Member[] currentMembers,
RolapCube defaultCube)
|
SqlStatement |
drillThroughInternal(int maxRowCount,
int firstRowOrdinal,
List<Exp> fields,
boolean extendedContext,
org.apache.log4j.Logger logger)
Generates an executes a SQL statement to drill through this cell. |
String |
getCachedFormatString()
Return the cached formatted string, that survives an aggregate cache clear. |
Member |
getContextMember(Hierarchy hierarchy)
Returns the context member for a particular dimension. |
List<Integer> |
getCoordinateList()
Returns the coordinates of this Cell in its Result. |
int |
getDrillThroughCount()
Returns the number of fact table rows which contributed to this Cell. |
String |
getDrillThroughSQL(boolean extendedContext)
Returns a SQL query that, when executed, returns drill through data for this Cell. |
String |
getDrillThroughSQL(List<Exp> fields,
boolean extendedContext)
|
String |
getFormattedValue()
Returns the cell's value formatted according to the current format string, and locale-specific settings such as currency symbol. |
Object |
getPropertyValue(String propertyName)
Returns the value of a property. |
Object |
getValue()
Returns the cell's raw value. |
boolean |
isError()
Returns whether the cell's calculation returned an error. |
boolean |
isNull()
Returns whether the cell's value is null. |
void |
setValue(Scenario scenario,
Object newValue,
AllocationPolicy allocationPolicy,
Object... allocationArgs)
Helper method to implement Cell.setValue(java.lang.Object, org.olap4j.AllocationPolicy, java.lang.Object...). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int[] pos
protected RolapResult.CellInfo ci
| Constructor Detail |
|---|
RolapCell(RolapResult result,
int[] pos,
RolapResult.CellInfo ci)
result - Result cell belongs topos - Coordinates of cellci - Cell information, containing value et cetera| Method Detail |
|---|
public List<Integer> getCoordinateList()
CellResult.
getCoordinateList in interface Cellpublic Object getValue()
CellThe value is never null. It may have various types:
Util.nullValue;Throwable;BigDecimal,
Double, Integer and String.
getValue in interface Cellpublic String getCachedFormatString()
Cell
getCachedFormatString in interface Cellpublic String getFormattedValue()
CellFormat.
getFormattedValue in interface Cellpublic boolean isNull()
Cell
isNull in interface Cellpublic boolean isError()
Cell
isError in interface Cellpublic String getDrillThroughSQL(boolean extendedContext)
CellIf the parameter extendedContext is true, then the query will
include all the levels (i.e. columns) of non-constraining members
(i.e. members which are at the "All" level).
If the parameter extendedContext is false, the query will
exclude the levels (coulmns) of non-constraining members.
The result is null if the cell is based upon a calculated member.
getDrillThroughSQL in interface Cell
public String getDrillThroughSQL(List<Exp> fields,
boolean extendedContext)
public int getDrillThroughCount()
Cell
getDrillThroughCount in interface Cellpublic boolean canDrillThrough()
canDrillThrough in interface Cell
public static RolapCube chooseDrillThroughCube(Member[] currentMembers,
RolapCube defaultCube)
public SqlStatement drillThroughInternal(int maxRowCount,
int firstRowOrdinal,
List<Exp> fields,
boolean extendedContext,
org.apache.log4j.Logger logger)
Throws if this cell is not drillable.
Enforces limits on the starting and last row.
If tabFields is not null, returns the specified columns. (This option is deprecated.)
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 field expressions to return as the
result set columns.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
public Object getPropertyValue(String propertyName)
Cell
getPropertyValue in interface CellpropertyName - Case-sensitive property name
public Member getContextMember(Hierarchy hierarchy)
Cell
getContextMember in interface Cellhierarchy - Hierarchy
public void setValue(Scenario scenario,
Object newValue,
AllocationPolicy allocationPolicy,
Object... allocationArgs)
CellCell.setValue(java.lang.Object, org.olap4j.AllocationPolicy, java.lang.Object...).
setValue in interface Cellscenario - ScenarionewValue - New valueallocationPolicy - Allocation policyallocationArgs - Arguments for allocation policy
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||