Package mondrian.test

Class ParentChildHierarchyTest


  • public class ParentChildHierarchyTest
    extends FoodMartTestCase
    Tests for parent-child hierarchies.
    Since:
    Mar 6, 2003
    Author:
    jhyde
    • Constructor Detail

      • ParentChildHierarchyTest

        public ParentChildHierarchyTest​(String name)
    • Method Detail

      • testDotMembersNoClosure

        public void testDotMembersNoClosure()
      • testSharedClosureParentChildHierarchy

        public void testSharedClosureParentChildHierarchy()
      • testAll

        public void testAll()
      • testChildrenOfAll

        public void testChildrenOfAll()
      • testDistinctChildrenOfAll

        public void testDistinctChildrenOfAll()
      • testDistinctSubtree

        public void testDistinctSubtree()
      • testDistinctAllExplicitClosure

        public void testDistinctAllExplicitClosure()
        Verifies that COUNT DISTINCT works against the explict closure of the parent/child hierarchy. (Repeats the last 4 tests.)
      • testDistinctChildrenOfAllExplicitClosure

        public void testDistinctChildrenOfAllExplicitClosure()
      • testDistinctSubtreeExplicitClosure

        public void testDistinctSubtreeExplicitClosure()
      • testLeaf

        public void testLeaf()
      • testOneAboveLeaf

        public void testOneAboveLeaf()
      • testParentChildDescendantsLeavesBottom

        public void testParentChildDescendantsLeavesBottom()
        Script That Uses the LEAVES Flag to Return the Bottom 10 Dimension Members, from here.
      • testParentChildDescendantsLeavesTop

        public void testParentChildDescendantsLeavesTop()
        Script from here.
      • testAllMembersParent

        public void testAllMembersParent()
      • testHierarchyFalseCycle

        public void testHierarchyFalseCycle()
        The recursion cyclicity check kicks in when the recursion depth reachs the number of dimensions in the cube. So create a cube with fewer dimensions (3) than the depth of the emp dimension (6).
      • testGenuineCycle

        public void testGenuineCycle()
      • testParentChildDrillThrough

        public void testParentChildDrillThrough()
      • testParentChildDrillThroughWithContext

        public void testParentChildDrillThroughWithContext()
      • testLevelMembers

        public void testLevelMembers()
      • testClosureVsNoClosure

        public void testClosureVsNoClosure()
        Verifies the fix for MONDRIAN-519, a class cast exception when using non-closure parent child hierarchies.
      • testSchemaReaderLevelMembers

        public void testSchemaReaderLevelMembers()
      • testPCCacheKeyBug

        public void testPCCacheKeyBug()
                               throws Exception
        Fix for MONDRIAN-1225

        When nativizing a set which contained a PC hierarchy, the SqlTupleReader would ask the cache for the parent member of the member it was populating, but the members are only put in cache at the second phase of the tuple computation, once all the members have been populated from SQL. Now, the SqlTupleReader keeps an intermediate key->member map so it can construct PC hierarchies correctly. This map gets picked up by the GC as soon as the SQL result set reaches its end and the tuple reader is closed, so there are no added cost to this.

        Throws:
        Exception