Package org.apache.calcite.linq4j.test
Class DeterministicTest
- java.lang.Object
-
- org.apache.calcite.linq4j.test.DeterministicTest
-
public class DeterministicTest extends java.lang.Object
Tests factoring out deterministic expressions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeterministicTest.TestClass
Class to test @Deterministic annotationstatic class
DeterministicTest.TestDeterministicClass
Class to test @NonDeterministic annotation
-
Constructor Summary
Constructors Constructor Description DeterministicTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.reflect.Method
getMethod(java.lang.Class<?> thisClass, java.lang.String methodName, java.lang.Class<?>... paramClasses)
private boolean
isAtomic(org.apache.calcite.linq4j.tree.Expression e)
private boolean
isConstant(org.apache.calcite.linq4j.tree.Expression e)
void
testBigIntegerValueOf()
void
testConstantIsConstant()
void
testDeterministicClassDefaultMethod()
void
testDeterministicClassNonDeterministicMethod()
void
testDeterministicMethodCall()
void
testFactorOutBinaryAdd()
void
testFactorOutBinaryAddMul()
void
testFactorOutBinaryAddNameCollision()
void
testFactorOutBinaryAddSurvivesMultipleOptimizations()
void
testFactorOutNestedClasses()
void
testInstanceofComplexTest()
void
testInstanceofTest()
void
testIntegerValueOfZeroComplexTest()
void
testNewBigInteger()
void
testNonDeterministicMethodCall()
void
testStaticField()
-
-
-
Method Detail
-
isAtomic
private boolean isAtomic(org.apache.calcite.linq4j.tree.Expression e)
-
getMethod
private static java.lang.reflect.Method getMethod(java.lang.Class<?> thisClass, java.lang.String methodName, java.lang.Class<?>... paramClasses)
-
isConstant
private boolean isConstant(org.apache.calcite.linq4j.tree.Expression e)
-
testConstantIsConstant
public void testConstantIsConstant()
-
testFactorOutBinaryAdd
public void testFactorOutBinaryAdd()
-
testFactorOutBinaryAddSurvivesMultipleOptimizations
public void testFactorOutBinaryAddSurvivesMultipleOptimizations()
-
testFactorOutBinaryAddNameCollision
public void testFactorOutBinaryAddNameCollision()
-
testFactorOutBinaryAddMul
public void testFactorOutBinaryAddMul()
-
testFactorOutNestedClasses
public void testFactorOutNestedClasses()
-
testNewBigInteger
public void testNewBigInteger()
-
testInstanceofTest
public void testInstanceofTest()
-
testInstanceofComplexTest
public void testInstanceofComplexTest()
-
testIntegerValueOfZeroComplexTest
public void testIntegerValueOfZeroComplexTest()
-
testStaticField
public void testStaticField()
-
testBigIntegerValueOf
public void testBigIntegerValueOf()
-
testDeterministicMethodCall
public void testDeterministicMethodCall()
-
testNonDeterministicMethodCall
public void testNonDeterministicMethodCall()
-
testDeterministicClassDefaultMethod
public void testDeterministicClassDefaultMethod()
-
testDeterministicClassNonDeterministicMethod
public void testDeterministicClassNonDeterministicMethod()
-
-