|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.olap.ResultBase mondrian.rolap.RolapResult
public class RolapResult
A RolapResult
is the result of running a query.
Nested Class Summary | |
---|---|
(package private) static class |
RolapResult.CellFormatterValueFormatter
A CellFormatterValueFormatter uses a user-defined CellFormatter
to format values. |
(package private) static class |
RolapResult.CellInfo
A CellInfo contains all of the information that a Cell requires. |
(package private) static interface |
RolapResult.CellInfoContainer
API for the creation and lookup of RolapResult.CellInfo objects. |
(package private) static class |
RolapResult.CellInfoMap
Implementation of RolapResult.CellInfoContainer which uses a Map to
store CellInfo Objects. |
(package private) static class |
RolapResult.CellInfoPool
Implementation of RolapResult.CellInfoContainer which uses an
ObjectPool to store RolapResult.CellInfo Objects. |
(package private) static class |
RolapResult.FormatValueFormatter
A FormatValueFormatter takes a Locale
as a parameter and uses it to get the Format
to be used in formatting an Object value with a
given format string. |
protected static class |
RolapResult.RolapResultEvaluatorRoot
Extension to RolapEvaluator.RolapEvaluatorRoot which is capable
of evaluating named sets.
A given set is only evaluated once each time a query is executed; the
result is added to the RolapResult.RolapResultEvaluatorRoot.namedSetValues cache on first execution
and re-used.
Named sets are always evaluated in the context of the slicer. |
(package private) static interface |
RolapResult.ValueFormatter
Formatter to convert values into formatted strings. |
Field Summary | |
---|---|
protected static Map<CellFormatter,RolapResult.ValueFormatter> |
cellFormatters
Synchronized Map from CellFormatter to ValueFormatter. |
protected static Map<Locale,RolapResult.ValueFormatter> |
formatValueFormatters
Synchronized Map from Locale to ValueFormatter. |
Fields inherited from class mondrian.olap.ResultBase |
---|
axes, query, slicerAxis |
Constructor Summary | |
---|---|
RolapResult(Query query,
boolean execute)
|
Method Summary | |
---|---|
(package private) Axis |
evalExecute(List<List<Member>> nonAllMembers,
int cnt,
RolapEvaluator evaluator,
QueryAxis axis,
Calc calc)
|
(package private) void |
evalLoad(List<List<Member>> nonAllMembers,
int cnt,
Evaluator evaluator,
QueryAxis axis,
Calc calc,
mondrian.rolap.RolapResult.AxisMember axisMembers)
|
Axis[] |
getAxes()
Returns the non-slicer axes. |
Cell |
getCell(int[] pos)
Get the Cell for the given Cell position. |
(package private) RolapEvaluator |
getCellEvaluator(int[] pos)
Called only by RolapCell. |
(package private) Member[] |
getCellMembers(int[] pos)
Called only by RolapCell. |
(package private) int |
getCellOrdinal(int[] pos)
Converts a set of cell coordinates to a cell ordinal. |
(package private) int[] |
getCellPos(int cellOrdinal)
Converts a cell ordinal to a set of cell coordinates. |
RolapCube |
getCube()
|
(package private) Evaluator |
getEvaluator(int[] pos)
|
protected org.apache.log4j.Logger |
getLogger()
|
(package private) Evaluator |
getRootEvaluator()
|
(package private) boolean |
isDirty()
|
protected void |
loadMembers(List<List<Member>> nonAllMembers,
RolapEvaluator evaluator,
QueryAxis axis,
Calc calc,
mondrian.rolap.RolapResult.AxisMember axisMembers)
|
protected void |
loadSpecialMembers(List<Member> nonDefaultAllMembers,
List<List<Member>> nonAllMembers,
List<Member> measureMembers)
Finds all root Members 1) whose Hierarchy does not have an ALL Member, 2) whose default Member is not the ALL Member and 3) all Measures. |
protected void |
makeModulos()
|
(package private) static Axis |
mergeAxes(Axis axis1,
Axis axis2,
RolapEvaluator evaluator,
boolean ordered)
|
protected boolean |
removeDimension(Dimension dimension,
List<List<Member>> nonAllMembers)
|
protected boolean |
replaceNonAllMembers(List<List<Member>> nonAllMembers,
mondrian.rolap.RolapResult.AxisMember axisMembers)
|
Methods inherited from class mondrian.olap.ResultBase |
---|
close, getMember, getQuery, getSlicerAxis, print |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map<Locale,RolapResult.ValueFormatter> formatValueFormatters
protected static final Map<CellFormatter,RolapResult.ValueFormatter> cellFormatters
Constructor Detail |
---|
RolapResult(Query query, boolean execute)
Method Detail |
---|
protected boolean removeDimension(Dimension dimension, List<List<Member>> nonAllMembers)
protected boolean replaceNonAllMembers(List<List<Member>> nonAllMembers, mondrian.rolap.RolapResult.AxisMember axisMembers)
protected void loadMembers(List<List<Member>> nonAllMembers, RolapEvaluator evaluator, QueryAxis axis, Calc calc, mondrian.rolap.RolapResult.AxisMember axisMembers)
void evalLoad(List<List<Member>> nonAllMembers, int cnt, Evaluator evaluator, QueryAxis axis, Calc calc, mondrian.rolap.RolapResult.AxisMember axisMembers)
Axis evalExecute(List<List<Member>> nonAllMembers, int cnt, RolapEvaluator evaluator, QueryAxis axis, Calc calc)
protected void loadSpecialMembers(List<Member> nonDefaultAllMembers, List<List<Member>> nonAllMembers, List<Member> measureMembers)
nonDefaultAllMembers
- List of all root Members for Hierarchies
whose default Member is not the ALL Member.nonAllMembers
- List of root Members for Hierarchies that have no
ALL Member.measureMembers
- List all Measuresprotected org.apache.log4j.Logger getLogger()
getLogger
in class ResultBase
public final RolapCube getCube()
public Axis[] getAxes()
Result
getAxes
in interface Result
getAxes
in class ResultBase
public Cell getCell(int[] pos)
pos
- Cell position.
boolean isDirty()
int[] getCellPos(int cellOrdinal)
getCellOrdinal(int[])
. For example, if this result is 10 x 10 x 10,
then cell ordinal 537 has coordinates (5, 3, 7).
This method is no longer used.
int getCellOrdinal(int[] pos)
getCellPos(int)
.
This method can be expensive, because the ordinal is computed from the length of the axes, and therefore the axes need to be instantiated.
protected void makeModulos()
RolapEvaluator getCellEvaluator(int[] pos)
pos
- Coordinates of cell
Member[] getCellMembers(int[] pos)
getCellEvaluator(int[])
) is not required.
pos
- Coordinates of cell
Evaluator getRootEvaluator()
Evaluator getEvaluator(int[] pos)
static Axis mergeAxes(Axis axis1, Axis axis2, RolapEvaluator evaluator, boolean ordered)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |