Class RolapResult

  • All Implemented Interfaces:
    Result

    public class RolapResult
    extends ResultBase
    A RolapResult is the result of running a query.
    Since:
    10 August, 2001
    Author:
    jhyde
    • Field Detail

      • formatValueFormatters

        protected static final Map<Locale,​mondrian.rolap.RolapResult.ValueFormatter> formatValueFormatters
        Synchronized Map from Locale to ValueFormatter. It is expected that there will be only a small number of Locale's. Should these be a WeakHashMap?
    • Method Detail

      • replaceNonAllMembers

        protected boolean replaceNonAllMembers​(List<List<Member>> nonAllMembers,
                                               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 class ResultBase
      • 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.