Package mondrian.rolap
Class RolapResult
- java.lang.Object
-
- mondrian.olap.ResultBase
-
- mondrian.rolap.RolapResult
-
- All Implemented Interfaces:
Result
public class RolapResult extends ResultBase
ARolapResult
is the result of running a query.- Since:
- 10 August, 2001
- Author:
- jhyde
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RolapResult.CompoundSlicerRolapMember
Member which holds the AggregateCalc used when evaluating a compound slicer.protected static class
RolapResult.RolapResultEvaluatorRoot
Extension toRolapEvaluatorRoot
which is capable of evaluating sets and named sets.
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Locale,mondrian.rolap.RolapResult.ValueFormatter>
formatValueFormatters
Synchronized Map from Locale to ValueFormatter.-
Fields inherited from class mondrian.olap.ResultBase
axes, execution, query, slicerAxis, statement
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Axis[]
getAxes()
Returns the non-slicer axes.Cell
getCell(int[] pos)
Get the Cell for the given Cell position.RolapCube
getCube()
Execution
getExecution()
protected org.apache.logging.log4j.Logger
getLogger()
protected void
loadMembers(List<List<Member>> nonAllMembers, RolapEvaluator evaluator, QueryAxis axis, Calc calc, mondrian.rolap.RolapResult.AxisMemberList 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()
Instantiates the calculator to convert cell coordinates to a cell ordinal and vice versa.protected boolean
removeDimension(Dimension dimension, List<List<Member>> memberLists)
protected boolean
replaceNonAllMembers(List<List<Member>> nonAllMembers, mondrian.rolap.RolapResult.AxisMemberList axisMembers)
-
Methods inherited from class mondrian.olap.ResultBase
getMember, getQuery, getSlicerAxis, print
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceResult
- Overrides:
close
in classResultBase
-
removeDimension
protected boolean removeDimension(Dimension dimension, List<List<Member>> memberLists)
-
getExecution
public final Execution getExecution()
- Overrides:
getExecution
in classResultBase
-
replaceNonAllMembers
protected boolean replaceNonAllMembers(List<List<Member>> nonAllMembers, mondrian.rolap.RolapResult.AxisMemberList axisMembers)
-
loadMembers
protected void loadMembers(List<List<Member>> nonAllMembers, RolapEvaluator evaluator, QueryAxis axis, Calc calc, mondrian.rolap.RolapResult.AxisMemberList axisMembers)
-
loadSpecialMembers
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.- Parameters:
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 Measures
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()
- Specified by:
getLogger
in classResultBase
-
getCube
public final RolapCube getCube()
-
getAxes
public Axis[] getAxes()
Description copied from interface:Result
Returns the non-slicer axes.- Specified by:
getAxes
in interfaceResult
- Overrides:
getAxes
in classResultBase
-
getCell
public Cell getCell(int[] pos)
Get the Cell for the given Cell position.- Parameters:
pos
- Cell position.- Returns:
- the Cell associated with the Cell position.
-
makeModulos
protected void makeModulos()
Instantiates the calculator to convert cell coordinates to a cell ordinal and vice versa.To create the calculator, any axis that is based upon an Iterable is converted into a List - thus increasing memory usage.
-
-