Package org.apache.calcite.profile
Class ProfilerTest
- java.lang.Object
-
- org.apache.calcite.profile.ProfilerTest
-
public class ProfilerTest extends java.lang.Object
Unit tests forProfiler
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ProfilerTest.Fluid
Fluid interface for writing profiler test cases.
-
Constructor Summary
Constructors Constructor Description ProfilerTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private ProfilerTest.Fluid
foodmart()
private ProfilerTest.Fluid
scott()
private static ProfilerTest.Fluid
sql(java.lang.String sql)
void
testProfileFoodmart()
Profiles a star-join query on the Foodmart schema using the breadth-first profiler.void
testProfileOneRow()
void
testProfileScott()
void
testProfileScott2()
AstestProfileScott()
, but prints only the most surprising distributions.void
testProfileScott3()
AstestProfileScott2()
, but uses the breadth-first profiler.void
testProfileScott4()
AstestProfileScott3()
, but uses the breadth-first profiler and deems everything uninteresting.void
testProfileScott5()
AstestProfileScott3()
, but uses the breadth-first profiler.void
testProfileTwoRows()
void
testProfileZeroRows()
void
testSurpriseQueue()
TestsProfilerImpl.SurpriseQueue
.
-
-
-
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
AstestProfileScott()
, but prints only the most surprising distributions.- Throws:
java.lang.Exception
-
testProfileScott3
public void testProfileScott3() throws java.lang.Exception
AstestProfileScott2()
, 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
AstestProfileScott3()
, 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
AstestProfileScott3()
, 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()
TestsProfilerImpl.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
-
sql
private static ProfilerTest.Fluid sql(java.lang.String sql)
-
-