Class ProfilerTest


  • public class ProfilerTest
    extends java.lang.Object
    Unit tests for Profiler.
    • Constructor Detail

      • ProfilerTest

        public ProfilerTest()
    • Method Detail

      • testProfileZeroRows

        public void testProfileZeroRows()
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testProfileOneRow

        public void testProfileOneRow()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testProfileTwoRows

        public void testProfileTwoRows()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testProfileScott

        public void testProfileScott()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testProfileScott2

        public void testProfileScott2()
                               throws java.lang.Exception
        As testProfileScott(), but prints only the most surprising distributions.
        Throws:
        java.lang.Exception
      • testProfileScott3

        public void testProfileScott3()
                               throws java.lang.Exception
        As testProfileScott2(), but uses the breadth-first profiler. Results should be the same, but are slightly different (extra EMPNO and ENAME distributions).
        Throws:
        java.lang.Exception
      • testProfileScott4

        public void testProfileScott4()
                               throws java.lang.Exception
        As testProfileScott3(), but uses the breadth-first profiler and deems everything uninteresting. Only first-level combinations (those consisting of a single column) are computed.
        Throws:
        java.lang.Exception
      • testProfileScott5

        public void testProfileScott5()
                               throws java.lang.Exception
        As testProfileScott3(), but uses the breadth-first profiler.
        Throws:
        java.lang.Exception
      • testProfileFoodmart

        public void testProfileFoodmart()
                                 throws java.lang.Exception
        Profiles a star-join query on the Foodmart schema using the breadth-first profiler.
        Throws:
        java.lang.Exception
      • testSurpriseQueue

        public void testSurpriseQueue()
        Tests ProfilerImpl.SurpriseQueue.
      • scott

        private ProfilerTest.Fluid scott()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • foodmart

        private ProfilerTest.Fluid foodmart()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception